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