Answer:
As we know, Nunjucks is inspired by the Jinja2 python template engine, the if statement is similar to it.
// And Snippet {% if (VARIABLE > 10) and (VARIABLE < 20) %} // {% endif %} // Or Snippet {% if (VARIABLE == 10) or (VARIABLE == 20) %} // {% endif %}
Here it is!!!
Could not find this in the Nunjucks documentation. I find this answer to be useful, as Nunjucks coders tend to look for the Nunjucks keyword, not Jinja.
source share