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

derive: in complex conditions, wrap terms in as_bool() #203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Kijewski
Copy link
Collaborator

Before this PR, the whole condition in {% if cond %} got wrapped in as_bool(&cond). With is PR, the individual terms in a binary operation && or ||, or unary operation ! get wrapped in as_bool().

Resolves #201.

This PR is rebased on #202.

Before this PR, the whole condition in `{% if cond %}` got wrapped in
`as_bool(&cond)`. With is PR, the individual terms in a binary operation
`&&` or `||`, or unary operation `!` get wrapped in `as_bool()`.
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

Successfully merging this pull request may close these issues.

In an if condition with conjuctions && and disjunctions ||, should each term be "boolified"?
1 participant