Loop Block
Iterates through the provided array and evaluates user answer.
When to use?
When you've got a collection of items you want a user to respond to within a block
How to use:
- In the Block name field you can change the block's the name
- In the Items field enter the name of the array, as shown in this example: ${array_name}
- In the Data collection item name enter the name under which you'll be able to access individual array items, for example: item
- You can skip iterations of as many items as you wish, starting from the beginning of the array, by entering an offset number in the Offset field
- Entering a limit number in the Limit field limits the number of iterations to a specified number
- You can set the Skip reset field to true (or an expression that evaluates to true) to skip resetting status variables after the iteration is interrupted, for example: ${some_var}
- In the Main Processors container place the processors that rely on user reply to advance the iteration
- Processors in the Other Processors container don't advance the iteration
- To access array values, use this syntax: ${item.value}
- To access array indexes, use this syntax: ${item.index}
- If you want to output array indexes, counting from number one instead of zero, use this: ${item.natural}
- To identify the first, or the last iteration, use this syntax: ${item.first}, {item.last}