-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support &&
and ||
?
#622
Comments
|
Agreed, we don't need redundant syntax for things that already exist. |
The documentation for if (https://mozilla.github.io/nunjucks/templating.html#if) says "It behaves exactly as javascript's if behaves". |
|
I was mislead by the document as well. |
I use the shorthand if operator |
{% if list && list.length>0 %}
and{{ someVal || "test"}}
The text was updated successfully, but these errors were encountered: