Tile - Loop While – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} | ||
[[Category: Ylands 0.10]] | |||
[[Category: Instructions]] |
Revision as of 15:16, 2 January 2019
- 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.