Difference between revisions of "while"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
m (added link for non-scheduled environment in KK's note)
Line 58: Line 58:
 
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
 
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
 
<dd class="note">
 
<dd class="note">
In non-scheduled environment, [[while]] [[do]] loop is limited to 10000 iterations, after which it exits even if condition is still [[true]]. In scheduled environment no such limit exists.
+
In [[Scheduler#Unscheduled_Environment|non-scheduled environment]], [[while]] [[do]] loop is limited to 10000 iterations, after which it exits even if condition is still [[true]]. In scheduled environment no such limit exists.
 
</dd>
 
</dd>
 
</dl>
 
</dl>
 
<!-- DISCONTINUE Notes -->
 
<!-- DISCONTINUE Notes -->

Revision as of 23:00, 15 June 2017

Template:Command

Notes

Posted on May 14, 2008
Kronzky
The boolean code that's used to evaluate the while condition can be preceded by code that executes a regular command.
while {_a =_a + 1; _a < 10} do {...}

Bottom Section

Posted on August 30, 2014 - 08:12 (UTC)
Killzone Kid
In non-scheduled environment, while do loop is limited to 10000 iterations, after which it exits even if condition is still true. In scheduled environment no such limit exists.