ForEach
The for each effect allows you to iterate over an array and perform an
effect (apply) for each of its values.
JSON Format
{
"type": "forEach",
"components": ...,
"apply": ...,
"for_each_value_key": ...,
"synchronous": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
synchronous | bool | Optional parameter (true by default) to indicate if iteration should be done synchronously. If so, the app will wait until the apply function completes before continuing with the next value in the array. For example, if the apply function displays a pop up (by using the showPopUp effect), it will wait until the pop up is dismissed before carrying on with the next element in the array. Setting this to false will execute the apply effect for all values simultaneously. |