For Each
Controlled node
Overview
A node for looping over iterable data structures such as List and Dictionary. The node will iterate over each element in the data structure. For each iteration the node will output the element itself, the key (either the list index or the dictionary key), and a loop event. When the loop is finished, the node will output a finished event.
Inputs
Input | Type | Description | Default |
---|---|---|---|
Object | List | Dictionary | An iterable object to loop over. | - |
Run | Event | Start the loop | - |
Outputs
Output | Type | Description |
---|---|---|
Element | Any | The current element in the loop |
Key | Number | String | Will be either the list index or the dictionary key, depending on the type of iterable. |
Loop | Event | Fires for every element in the loop |
Finished | Event | Fires when the loop has finished |