# For Each Integer Deprecated
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
#AUTOVAR(ae) = #PARAM(e);
#AUTOVAR(ai) = #PARAM(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
- Repeat — macro
- Repeat Forever — macro
- For Each Real — macro
- For Each Real Deprecated — macro
- For Each Integer — macro
- For Each Integer Deprecated — macro
- Pick Each Integer — macro
- Pick Each Integer Deprecated — macro
- Picked Integer
- Picked Integer Deprecated —
int
— IntLoopCurrentDeprecated - While — macro
- Do - While — macro
# Examples
— None found —