Answers for "twig array lengt"

1

check length of array twig

{% if users|length > 10 %}
    ...
{% endif %}
Posted by: Guest on March-29-2021

Browse Popular Code Answers by Language