Development

/plugins/cpTwigPlugin/trunk/lib/vendor/twig/doc/tests/empty.rst

You must first sign up to be able to contribute.

root/plugins/cpTwigPlugin/trunk/lib/vendor/twig/doc/tests/empty.rst

Revision 33106, 224 bytes (checked in by coopers, 2 years ago)

added twig and twig-extensions as vendor libs

Line 
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, or the empty string #}
9     {% if foo is empty %}
10         ...
11     {% endif %}
Note: See TracBrowser for help on using the browser.