1 2 3 4 5 6 7 8 9 10 11
``empty`` ========= ``empty`` checks if a variable is empty: .. code-block:: jinja {# evaluates to true if the foo variable is null, false, an empty array, or the empty string #} {% if foo is empty %} ... {% endif %}