Tile - Loop For – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


[[File:YlandsTile-335.png]]
[[File:YlandsTile-335.png]]
=== Availability ===
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]


=== Description ===
=== Description ===

Revision as of 11:17, 12 November 2021

Loop For

YlandsTile-335.png

Availability

Client, Server, Custom Controller

Description

This loop will execute selected instruction sequence as long as a counter variable (I) is within the defined range.

Notes

  • Value of current iteration is returned as I and can be used as local variable in instructions inside the loop.
  • Loop also support negative increments, so it is possible to perform count down, e.g FROM 10 TO 1 BY -1.
  • FROM, TO is half-closed interval, it does not include TO value.