Tile - Loop While – Ylands
Jump to navigation
Jump to search
(Created page with " ---- {{Ylands scripting navbox}}") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Image: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 [[Ylands Tile - Break-Continue|'''break''']] instruction to '''jump out''' of the loop. | |||
=Notes= | |||
*See also: [[Ylands Tile - Break-Continue|'''Break / Continue''']] | |||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} |
Revision as of 11:48, 12 December 2018
- 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
- See also: Break / Continue