# For Each Integer
Grammar — For each integer var from s to e with increment increment, do (Actions)
Flags —SubFunctions
|Action
Executes a For Loop using an integer value. This will run the action set included in the For Loop a number of times determined by the Start, End, and Increment parameters, increasing the integer variable by the Increment parameter each time. For example: If you set up a For Loop to start at 1, end at 10, increment by 1, and made a single “Chat Message” action inside of the For Loop that converted the
# Arguments
anyvariable
— Variableint
— Startint
— Endint
— Increment
Returns — void
#INITAUTOVAR(ae,e)
#INITAUTOVAR(ai,increment)
#PARAM(var) = #PARAM(s);
for ( ; ( (#AUTOVAR(ai) >= 0 && #PARAM(var) <= #AUTOVAR(ae)) || (#AUTOVAR(ai) < 0 && #PARAM(var) >= #AUTOVAR(ae)) ) ; #PARAM(var) += #AUTOVAR(ai) ) {
#SUBFUNCS(actions)
}
# Related
Category: General / Loops
- [F] —
void
— Repeat — ( ) - [F] —
void
— Repeat Forever — ( ) - [F] —
void
— For Each Real — ( ) - [F] —
void
— For Each Real Deprecated — ( ) - [F] —
void
— For Each Integer — ( ) - [F] —
void
— For Each Integer Deprecated — ( ) - [F] —
void
— Pick Each Integer — ( ) - [F] —
void
— Pick Each Integer Deprecated — ( ) - [F] —
int
— Picked Integer — ( ) - [F] —
int
— Picked Integer Deprecated — ( IntLoopCurrentDeprecated ) - [F] —
void
— While — ( ) - [F] —
void
— Do - While — ( )
# Examples
— None found —