Logic
For-each loop
Loops through each item in a list to run the same logic.
Fields
Name | Type | Control | Default | Description | Options | Validation |
---|---|---|---|---|---|---|
Items | Object | Textarea | [] | The item value will be passed in the execution environment and will be available at @, its id at @. You can use either a list or a dictionary. | - | - |
Prefix | Text | - | - | If set, the item will be available at @ and the item id at @. | - | - |
End states
Below are the possible end states of the block call.
Name | Field | Type | Description |
---|---|---|---|
Loop | - | dynamic | Connect the branch that you’d like to loop on. The branch plugged in here will be executed once per item. |
Success | - | success | The branch referenced executed successfully for each item. |
Error | - | error | The branch referenced has failed for at least one of the items. |
The dynamic
end state means that the exact values of this end state change based on how you define the block.