Answers for "how to get the last iteration of unknown array 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

Code answers related to "how to get the last iteration of unknown array twig"

Browse Popular Code Answers by Language