Answers for "twig if first array element"

0

twig if first array element

{% for user in users %}
	{% if user == users|first %}
    	First user
    {% else %}
    	Others...
    {% endif %}>
{% endfor %}
Posted by: Guest on February-08-2021

Browse Popular Code Answers by Language