Tile - Loop While – Ylands

From Bohemia Interactive Community
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:
[[Image:Ylands_Tile_-_While.png]]
<!---
*While '''loop''' will execute selected instruction sequence '''as long''' as a specified condition is '''true'''.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*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.
== Loop While ==


=Notes=
[[File:YlandsTile-199.png]]
*There is internal '''limit''' to all loops to break out after one '''milion''' iterations.
 
*See also: [[Ylands Tile - Break-Continue|'''Break / Continue''']].
=== 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]]
[[Category: Ylands 0.10]]

Revision as of 09:53, 8 July 2021

Loop While

YlandsTile-199.png

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.