not empty twig code example
Example 1: twig is not empty
{% if not (varname is empty) %}
That's not empty.
{% endif %}
Example 2: twig is empty
{% if varname is empty %}
That's empty.
{% endif %}
{% if not (varname is empty) %}
That's not empty.
{% endif %}
{% if varname is empty %}
That's empty.
{% endif %}