Tile - Loop While – Ylands

From Bohemia Interactive Community
Revision as of 20:44, 26 December 2020 by Lou Montana (talk | contribs) (Text replacement - "{{Ylands scripting navbox}}" to "{{Ylands editor navbox}}")
Jump to navigation Jump to search

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.



Template:Ylands editor navbox