I am trying to show or hide content based on event variables.
If I want to show “This works” when the ids are 11111 or 22222, the if condition works.
{% if event.id = '11111' or event.id = '22222' %}
This works.
{% endif %}
If I want to hide “Does not work” when the ids are 11111 or 22222, the if condition with the != does not work.
{% if event.id != '11111' or event.id != '22222' %}
Does not work.
{% endif %}
Any ideas why not, or is the syntax incorrect?
(I’m not looking for a work around at this stage, like show/hide blocks based on those variables, but am trying to solve it inline)