Loop over elements in a list/array, returning the value of the last iteration
How to Use
The For-Each Loop brick contains a flow that will execute each brick inside it once for each item in the array the For-Each Loop brick is given. This array is input into the ‘elements’ field, and the current item the flow is executing for is accessible using the variable named in the ‘elementKey’ field.
Note that the For-Each Loop brick works based on what was in the given array when it started executing, so changes to that array won’t affect the number of loops or the elements provided.
|The bricks to execute for each element
|A list/array of elements to loop over
|The element key/variable for the body of the loop, without the leading @
|No outputs for this brick defined.