]> git.immae.eu Git - github/wallabag/wallabag.git/blame - vendor/twig/twig/doc/tests/empty.rst
gitignore vendor
[github/wallabag/wallabag.git] / vendor / twig / twig / doc / tests / empty.rst
CommitLineData
4f5b44bd
NL
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 %}