For Loop

Perform something a certain amount of times, as per your choice.

When to use?

The For loop is used when you know how many times you should repeat an action. Maybe you want a countdown? This is the way to do it.

How to use:

  1. In the Count field, enter the number of times you want to iterate the loop.
  2. In the Status variable field, enter the name under which you'll be able to access information on the current loop iteration. For example: statusVar
  3. You can place any number of other element components inside the Elements container.
  4. To access array indexes, use the index property on the Status variable, e.g. ${statusVar.index}
  5. If you want to output array indexes, counting from one instead of zero, use ${statusVar.natural}
  6. To identify the first, or the last iteration, use ${statusVar.first}, ${statusVar.last}, both of which are booleans (true or false).