-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Multi condition if statements can produce some very wierd behaviour #1583
Comments
Your expectation for how
To get the behavior you want, you have to group them with begin/end:
which is definitely awkward. it might be worth producing a warning in the case when 'and' follow an if statement immediately, or possibly just fixing it so it works like you would want, or supporting && (see #150). |
I actually tried it with a test statement too, which produced strange results
but yeah, I agree with you. I'd actually like to see && and || specifically for if, but I imagine that a lot of people make the mistake I do with and. |
See also #1428. |
This should be fixed like #1428. |
Works, but
Doesn't
The text was updated successfully, but these errors were encountered: