For
From Wiki
Revision as of 10:28, 3 August 2007 by 65.32.162.67 (Talk)
Synopsis
for {variable} {start} {end} { }
Description
The for command controls a loop that iterates a variable over a range of numbers. Both positive and negative iterations are legal.
The variable is assigned the starting number to begin with. After each iteration it either increments or decrements the variable, until it reaches the ending number.
Note: | In EasyUO 1.4, you must use brackets, even if there is only a single line of code in a for loop. In EasyUO 1.5 however, brackets are optional when the for loop is only a single line of code. |
Example
for %i 1 20 { msg %i $ wait 10 } halt
Related Commands
Continue |
See also
Main Page | Documentation |