Answers for "calculate for loop index Twig"

0

twig loop variables

{% for user in users %}
    {{ loop.index }} - {{ user.username }}
{% endfor %}
Posted by: Guest on May-01-2020
0

index first twig

{{ loop.index }}
OR
{{ loop.index0 }}
Posted by: Guest on May-16-2020

Browse Popular Code Answers by Language