The is
operator will apply a test to a variable which will return a boolean.
twig
{% if 2 is even %}
...
{% endif %}
The result can be negated using the not
operator:
twig
{% if 3 is not even %}
...
{% endif %}
🚀 New! Kestra raises $3 million to grow Learn more
The is
operator will apply a test to a variable which will return a boolean.
{% if 2 is even %}
...
{% endif %}
The result can be negated using the not
operator:
{% if 3 is not even %}
...
{% endif %}