Boolean Operators

If a condition is a boolean expression can check it directly.

It’s also possible to invert the check using the not keyword

Example


{% if TestValue|exists %}Value Exists{% else %}Value Doesn't Exist{% endif %}

Inverted Example


{% if not TestValue|exists %}Value Doesn't Exist{% else %}Value Exists{% endif %}