...
To test multiple conditions, you can nest another exclusive branch inside of an outer one.
Loop
Iterate over data (any array type) and perform a set of actions for each data item. Alternatively, you can set an iteration count to perform a set of actions a fixed number of times.
Note |
---|
Currently, loops will only run a maximum of 20 iterations. Attempting to run more than that will result in a failure at runtime. If you have a unique use case that requires more than 20 iterations, please raise a support ticket with us. |
There are 2 drop areas for connectors in the structure:
The first (inner) drop area is where you place tasks that should run for each iteration of the loop
The second (outer) drop area is where you place tasks that should run after every iteration of the loop has completed
Unlike other control flow structures, loops have a handful of outputs that you can use:
‘Current Value’ is only available to tasks inside the loop - it represents the current data item in the array that we are iterating
‘Current Iteration’ is only available to tasks inside the loop - it represents the current iteration count that we are at (starting from 0)
‘Iteration Outputs’ are available both inside and outside of the loop - it is an array of all of the task outputs from within the loop, where each entry is an object that represents the outputs of a particular iteration
Related articles
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...