Skip to content

Loop (For Each)

Purpose of the Node

The Loop node (For Each) is designed to iterate over each item in an array. It triggers an execution pin for each element and passes the current item and its index as output. Once all items have been processed, it triggers a “Done” execution pin.

Pins

This node has the following pins:

Pin NamePin DescriptionPin TypeValue Type
StartTrigger the loop to start processing the array.ExecutionN/A
ArrayThe array to loop over.GenericArray
For Each ElementExecutes for each element in the array.ExecutionN/A
ValueThe current element value being processed.GenericN/A
IndexThe current array index of the element.IntegerNumber
DoneExecutes once the array is completely processed.ExecutionN/A

The Start pin is the entry point to trigger the loop, and Done is the exit point after the entire array has been processed. The For Each Element pin is triggered for each iteration, allowing downstream nodes to process the current element and its index.