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:

  1. In the Block name field you can change the block's the name
  2. In the Items field enter the name of the array, as shown in this example: ${array_name}
  3. In the Data collection item name enter the name under which you'll be able to access individual array items, for example: item
  4. 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
  5. Entering a limit number in the Limit field limits the number of iterations to a specified number
  6. 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}
  7. In the Main Processors container place the processors that rely on user reply to advance the iteration
  8. Processors in the Other Processors container don't advance the iteration
  9. To access array values, use this syntax: ${item.value}
  10. To access array indexes, use this syntax: ${item.index}
  11. If you want to output array indexes, counting from number one instead of zero, use this: ${item.natural}
  12. To identify the first, or the last iteration, use this syntax: ${item.first}, {item.last}