How to check if a variable is equal to zero in twig and value defined
The way of checking for not null is:
{% if var is not null %}
But you can use the same as
function:
{% if var is same as(0) %} {# do something %}{% endif %}
The way of checking for not null is:
{% if var is not null %}
But you can use the same as
function:
{% if var is same as(0) %} {# do something %}{% endif %}