Files
cacti/include/phptwig/doc/tests/empty.rst
T
cigamit 368b5176ad committing Twig 1.24
including for now.  usage later.  its heavy and there is a C extension
that may make it optional too.
2016-03-19 10:34:39 -05:00

12 lines
240 B
ReStructuredText

``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 %}