So it states in the doc that it works pretty much like that:
{% if true and false and false or true %}
This evaluates to false, since the tags are checked like this:
true and (false and (false or true))
true and (false and true)
true and false
false
{% endif %}
• Does anyone know why we can’t have a more robust and intuitive system, closer to how javascript works?
• Is it possible to achieve something like that in a single line ?
{% if (aa and cc) or (bb and cc) or (aa and bb) %}
// do stuff
{% endif %}
I have tried, but I just couldn’t. That might not be possible in a single line. I’d appreciate some insights.