empty.rst 224B

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