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

IF statement with NOT before a logic comparison expression shows an error #329

Closed
lvcabral opened this issue Oct 4, 2019 · 0 comments · Fixed by #443
Closed

IF statement with NOT before a logic comparison expression shows an error #329

lvcabral opened this issue Oct 4, 2019 · 0 comments · Fixed by #443

Comments

@lvcabral
Copy link
Contributor

lvcabral commented Oct 4, 2019

The following code generates an error:

foo = 5
if not foo = 1
    print "foo is not 1"
end if

If you add parenthesis it works:

foo = 5
if not (foo = 1)
    print "foo is not 1"
end if
sjbarag pushed a commit that referenced this issue Jul 1, 2020
This allows `if` statements with a logical `not` operator, and closes
#329.
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 a pull request may close this issue.

1 participant