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

parsing bug with () comparison #179

Closed
ldemailly opened this issue Aug 25, 2024 · 0 comments · Fixed by #180
Closed

parsing bug with () comparison #179

ldemailly opened this issue Aug 25, 2024 · 0 comments · Fixed by #180
Labels
bug Something isn't working

Comments

@ldemailly
Copy link
Member

ldemailly commented Aug 25, 2024

$ if (X)!="" {true} else {false}
16:09:41.041 [ERR] parser error: expected next token to be `{`, got `!=` instead:
if (X)!="" {true} else {false}
       ^

showed up in grol bot when trying to compare a[I] != "" it saves as (a[I]) != ""

edit: this works

if ((x)==y) {true} else {false}
@ldemailly ldemailly added the bug Something isn't working label Aug 25, 2024
ldemailly added a commit that referenced this issue Aug 26, 2024
ldemailly added a commit that referenced this issue Aug 26, 2024
* Add failing test for #179

* easy fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant