Would bitwise logic be possible?

12 views
Skip to first unread message

Joey

unread,
Nov 4, 2016, 10:32:11 AM11/4/16
to Nunjucks
Would it be possible to have the template process if tags like:
{% if 3 & 2 == 2 %}


This does not work the same:

{% if 3 and 2 == 2 %}

An alternative may be required, because | is already used for filters, so maybe & won't do? 
Curious about what you think.

Reply all
Reply to author
Forward
0 new messages