mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 03:57:21 +00:00
The empty test now also checks for empty arrays
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
{# evaluates to true if the foo variable is null, false, or the empty string #}
|
||||
{# evaluates to true if the foo variable is null, false, an empty array or the empty string #}
|
||||
{% if foo is empty %}
|
||||
...
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user