# For Each Real
Grammar — For each real var from s to e with increment increment, do (Actions)
Flags —SubFunctions
|Action
Executes a for loop using a real 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
— Variablefixed
— Startfixed
— Endfixed
— 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
- 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 —