Difference between revisions of "Ylands:Tile - Loop While"
Jump to navigation
Jump to search
(Created page with " ---- {{Ylands scripting navbox}}") |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <!--- | ||
+ | THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE. | ||
+ | --> | ||
+ | == Loop While == | ||
+ | |||
+ | [[File:YlandsTile-199.png]] | ||
+ | |||
+ | === 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 | + | {{Navbox/Ylands}} |
+ | {{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}} | ||
+ | |||
+ | [[Category: Instructions]] |
Latest revision as of 12:17, 12 November 2021
Loop While
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.