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

Status variable fields

Fields for property Data Collection Item Name
Field Description
value The current value of the collection being iterated over
index Current programmatic index of the loop (starts at 0)
natural Human readable index (starts at 1)
first Boolean flag, whether the item is first in the collection
last Same as first, only checks if the item is last