| Name | Type | Description |
| name | String | The name of the current forloop (automatically generated from the for tag's variable and collection names). |
| length | Number | The number of items in the forloop |
| index | Number | The 1-based index of the current item in the for loop. |
| index0 | Number | The 0-based index of the current item in the for loop. |
| rindex | Number | The 1-based index of the current item in the for loop counting from the end to the beginning (the reverse of index). |
| rindex0 | Number | The 0-based index of the current item in the for loop counting from the end to the beginning (the reverse of index0). |
| first | Boolean | True if the current item is the first item in the for loop. |
| last | Boolean | True if the current item is the last item in the for loop. |
Iterates through every item in a list. Executes and outputs a block of code to the template for each item in the list.
{% for item in collection reversed? [limit:num]? [offset:value]? %}
{% else %}
If there are no items to iterate, the "else" block will be executed and output instead. This may be for several reasons, such as if the collection is not a list or is empty, or if the offset is greater than the size of the list.
{% continue %}
Skips to the next iteration of the current loop.
{% break %}
Exits the current loop immediately.
{% endfor %}
For loop with limit
CopyFor loop reversed
CopyLooping collection and accessing forloop properties
CopyLoop Request Headers
CopyLooping Request Headers with Key
CopyLoop Post Parameters
CopyTo map a collection of entities into a human-readable list of titles linking to the entities:
CopyList all custom properties for the current user
CopyList all keys and values for a labels field
Copy