For Loop
Executes the a loop body once for each value within a range. When step is positive, the values in the range are determined by the formula: r[i] = start + step’*’i, i >= 0 & r[i] < stop. When step is negative the constraint is instead r[i] > stop. A step of zero is an error. The break input can be used to break out of the loop before the last index. The finished output is executed after all iterations are complete, or when the loop was broken
Installation
To use this Node, you must enable omni.graph.action
in the Extension Manager.
Inputs
Name |
Type |
Description |
Default |
---|---|---|---|
Start (start) |
|
The first value in the range |
|
Stop (stop) |
|
The limiting value of the range |
|
Step (step) |
|
The step size of the range |
1 |
In (execIn) |
|
Input execution |
|
Break (breakLoop) |
|
Breaks out of the loop when the loop body traversal reaches it |
Outputs
Name |
Type |
Description |
Default |
---|---|---|---|
loopBody |
|
Executed for each index in the range |
|
value |
|
The current or last value of the range |
|
index |
|
The current or last index within the range |
|
finished |
|
Executed when the loop is finished |