For Loop

Loops through a block of code a specified number of times.

When to use?

The For loop is used when you know how many times you should repeat a block of code.

How to use:

  1. You can name the element in the Name field
  2. In the Count field, enter the number of times you want to loop through the block
  3. In the Status variable field, enter the name under which you'll be able to access individual array items, for example: statusVar
  4. You can place any number of other element components inside the For ELEMENTS container
  5. To access array indexes, use this syntax: ${statusVar.index}
  6. If you want to output array indexes, counting from number one instead of zero, use this: ${statusVar.natural}
  7. To identify the first, or the last iteration, use this syntax: ${statusVar.first}, ${statusVar.last}