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:
- In the Count field, enter the number of times you want to iterate the loop.
- 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
- You can place any number of other element components inside the Elements container.
- To access array indexes, use the
index
property on the Status variable, e.g. ${statusVar.index}
- If you want to output array indexes, counting from one instead of zero, use
${statusVar.natural}
- To identify the first, or the last iteration, use
${statusVar.first}
, ${statusVar.last}
, both of which are booleans (true
or false
).