Tile - Loop For – Ylands

From Bohemia Interactive Community
Revision as of 13:35, 27 March 2019 by Rudy.cz (talk | contribs) (Created page with "Image:Ylands_Tile_-_For_loop.png *This '''loop''' will execute selected instruction sequence as long as a '''counter''' variable ('''I''') is '''within''' the defined '''r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Ylands Tile - For loop.png

  • This loop will execute selected instruction sequence as long as a counter variable (I) is within the defined range.
  • 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. I ∈ [FROM, TO).
  • It is possible to use break instruction to jump out of the loop.

Notes



Template:Ylands scripting navbox