length of array twig code example Example: check length of array twig {% if users|length > 10 %} ... {% endif %}