If I write:
{% if entry.section not 'Homepage' %}Blabla {% endif %}
this results in the error:
Unexpected token "operator" of value "not" ("end of statement block" expected)
But if I write:
{% if entry.section != 'Homepage' %}Blabla {% endif %}
It works.
In the twig docs there is no mentioning of !=
as an operator but it seems to be working just fine. Is !=
a craft specific operator?
So whats the difference between not
and !=
?