Location: PHPKode > projects > SithTemplate > SithTemplate-1.1/docs/examples/stdlib/02_var_forloop.html
{% for v in vs %}
 {% if forloop.first %}first!{% endif %}
 {% if forloop.last %}last!{% endif %}
 {{ forloop.counter }}/{{ forloop.counter0 }}
 {{ forloop.revcounter }}/{{ forloop.revcounter0 }}
 {% for x in xs %}
  {{ forloop.parentloop.counter }}
 {% endfor %}
{% endfor %}
Return current item: SithTemplate