{% if foo is empty %}
...
{% endif %}
empty
The empty test checks if a variable is an empty string, an empty array, an empty hash, exactly false, or exactly null.
Was this helpful?
The empty test checks if a variable is an empty string, an empty array, an empty hash, exactly false, or exactly null.
{% if foo is empty %}
...
{% endif %}
Was this helpful?