Tile - Loop While – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(5 intermediate revisions by 2 users not shown)
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''']].
=== Availability ===
 
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]
 
=== Description ===
 
While '''loop''' will execute selected instruction sequence '''as long''' as a specified condition is '''valid'''.
 
=== Notes ===
 
* It is '''crucial''' to set correct escape '''condition''', otherwise the loop will continue '''indefinitely''' and will '''impact''' the script's '''performance'''.
* There is an internal '''limit''' to all loops to break out after one '''milion''' iterations.
* '''Break''' instruction will '''end''' the loop.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Latest revision as of 15:24, 24 November 2023

Loop While

YlandsTile-199.png

Availability

Client, Server, Custom Controller

Description

While loop will execute selected instruction sequence as long as a specified condition is valid.

Notes

  • It is crucial to set correct escape condition, otherwise the loop will continue indefinitely and will impact the script's performance.
  • There is an internal limit to all loops to break out after one milion iterations.
  • Break instruction will end the loop.