Difference between revisions of "Ylands:Tile - Loop While"

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 6: Line 6:
 
=Notes=
 
=Notes=
 
*There is internal '''limit''' to all loops to break out after one '''milion''' iterations.
 
*There is internal '''limit''' to all loops to break out after one '''milion''' iterations.
*See also: [[Ylands Tile - Break-Continue|'''Break / Continue''']]
+
*See also: [[Ylands Tile - Break-Continue|'''Break / Continue''']].
  
  
 
----
 
----
 
{{Ylands scripting navbox}}
 
{{Ylands scripting navbox}}

Revision as of 12:56, 12 December 2018

Ylands Tile - While.png

  • While loop will execute selected instruction sequence as long as a specified condition is true.
  • Its crucial to set correct escape condition, otherwise the loop will continue indefinitely and will impact script performance.
  • Alternatively, it is possible to use break instruction to jump out of the loop.

Notes

  • There is internal limit to all loops to break out after one milion iterations.
  • See also: Break / Continue.



Ylands scripting navbox