Tile - Loop While – Ylands
Jump to navigation
Jump to search
m (YlandsClassyBot moved page Ylands Tile - While to Ylands:Tile - Loop While: New Structure) |
No edit summary |
||
Line 1: | Line 1: | ||
<!--- | |||
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | |||
--> | |||
== Loop While == | |||
=Notes= | [[File:YlandsTile-199.png]] | ||
*There is internal '''limit''' to all loops to break out after one '''milion''' iterations | |||
=== Description === | |||
While '''loop''' will execute selected instruction sequence '''as long''' as a specified condition is '''true'''. It is '''crucial''' to set correct escape '''condition''', otherwise the loop will continue '''indefinitely''' and will '''impact''' the script's '''performance'''. Alternatively, it is possible to use the '''Break''' instruction to '''jump out''' of the loop. | |||
=== Notes === | |||
* There is an internal '''limit''' to all loops to break out after one '''milion''' iterations. | |||
Line 14: | Line 20: | ||
[[Category: Instructions]] | [[Category: Instructions]] | ||
Revision as of 08:53, 8 July 2021
Loop While
Description
While loop will execute selected instruction sequence as long as a specified condition is true. It is crucial to set correct escape condition, otherwise the loop will continue indefinitely and will impact the script's performance. Alternatively, it is possible to use the Break instruction to jump out of the loop.
Notes
- There is an internal limit to all loops to break out after one milion iterations.