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)

int

The first value in the range

Stop (stop)

int

The limiting value of the range

Step (step)

int

The step size of the range

1

In (execIn)

execution

Input execution

Break (breakLoop)

execution

Breaks out of the loop when the loop body traversal reaches it

Outputs#

Name

Type

Description

Default

loopBody

execution

Executed for each index in the range

value

int

The current or last value of the range

index

int

The current or last index within the range

finished

execution

Executed when the loop is finished