]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/doc/tests/empty.rst
e5b55999d3b4020adf81eaaf58a69dfb4bd1f63b
[github/wallabag/wallabag.git] / vendor / twig / twig / doc / tests / empty.rst
1 ``empty``
2 =========
3
4 ``empty`` checks if a variable is empty:
5
6 .. code-block:: jinja
7
8 {# evaluates to true if the foo variable is null, false, an empty array, or the empty string #}
9 {% if foo is empty %}
10 ...
11 {% endif %}