Skip to content
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

Operator precedence is not working as expected #290

Closed
jochen777 opened this issue Aug 16, 2017 · 2 comments
Closed

Operator precedence is not working as expected #290

jochen777 opened this issue Aug 16, 2017 · 2 comments

Comments

@jochen777
Copy link
Contributor

I think the operator precedence is not working properly:

Consider this model:
t = true; f = false;

And consider this template:
{% if not f and not t %} This should not be displayed {% endif %}

... But the result is, that "This should not be displayed" IS displayed.

If I use parentheses

{% if (not f) and (not t) %} This should not be displayed {% endif %}

it works as expected

ebussieres added a commit that referenced this issue May 1, 2018
@ebussieres
Copy link
Member

Fixed via 9cd7583

@jochen777
Copy link
Contributor Author

cool! Sourcecode change is much cleaner, than I expected! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants