Variables
Loop variable type
The variable type loop
provides variables related to the current loop.
Use the Get
tag and the loop
attribute.
<Get loop=count />
count
- Current loop count, an index starting from 1total
- Total number of items in current loopprevious_total
- Total number of items in previous loop, after it's closed