Tests

empty

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

Last updated on