I need to set some conditions in twig, so i have this:
{% if app.session.get('campaignVersion') is not null and is not '4.4d'}
...
{% elseif app.session.get('campaignVersion') is null or '4.4d' %}
...
{% endif %}
But i have errors with syntax and logic, maybe it must have an standard operator such as !=
, what i'm doing wrong? Thx for help.