diff options
Diffstat (limited to 'vendor/twig/twig/doc/tests/empty.rst')
-rw-r--r-- | vendor/twig/twig/doc/tests/empty.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/twig/twig/doc/tests/empty.rst b/vendor/twig/twig/doc/tests/empty.rst new file mode 100644 index 00000000..e5b55999 --- /dev/null +++ b/vendor/twig/twig/doc/tests/empty.rst | |||
@@ -0,0 +1,11 @@ | |||
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 %} | ||