Description
Denotes the beginning of a series of actions that will execute in a loop, modifying the control variable on each loop. The corresponding end action denotes the end of the loop. If the control variable reaches or passes the range stop value, then the loop exits, and execution jumps to the next action after the end action.
Snippet
For Global Variable(variableName, 0, Count OF, 1);
Properties
Returns: Void
Parameters: Control Variable, Range Start, Range Stop, Step
Control Variable
Type: Global Variable, Default: A
The variable being modified in this loop. It is set to the range start value when the loop begins, and the loop continues until the control variable reaches or passes the range stop value.Range Start
Type: Float, Default: Number
The control variable is set to this value when the loop begins.Range Stop
Type: Float, Default: Count OF
If the control variable reaches or passes this value, then the loop will exit, and execution jumps to the next action after the end action. Whether this value is considered passed or not is based on whether the step value is negative or positive. If the control variable has already reached or passed this value when the loop begins, then the loop exits.Step
Type: Float, Default: Number (1)
This value is added to the control variable when the end action is reached. If this modification causes the control variable to reach or pass the range stop value, then the loop exits, and execution jumps to the next action after the end action. Otherwise, the loop continues, and execution jumps to the next action after the for action.