Difference between revisions of "Ylands:Tile - Loop While"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
*Its '''crucial''' to set correct escape '''condition''', otherwise the loop will continue '''indefinitely''' and will '''impact''' script '''performance'''. | *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. | *Alternatively, it is possible to use [[Ylands Tile - Break-Continue|'''break''']] instruction to '''jump out''' of the loop. | ||
− | |||
=Notes= | =Notes= |
Revision as of 12:50, 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