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 eq does not support empty strings #390

Closed
wmmc88 opened this issue Jan 17, 2024 · 2 comments
Closed

if eq does not support empty strings #390

wmmc88 opened this issue Jan 17, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@wmmc88
Copy link

wmmc88 commented Jan 17, 2024

Describe The Bug

This is similar to #47 , but this is when the empty string is part of a conditional statement like if.

To Reproduce

This works:

e = eq "" ""
if ${e}
  # do stuff
end

This fails:

if eq "" ""
  # do stuff
end

Error Stack

ERROR - Error while running duckscript: Source: Unknown Line: 16 - Two arguments are required.
@wmmc88 wmmc88 changed the title if does not support empty strings if eq does not support empty strings Jan 17, 2024
@sagiegurari
Copy link
Owner

hmm seems it breaking the if/else parsing....

@sagiegurari sagiegurari added the bug Something isn't working label Jan 18, 2024
@sagiegurari
Copy link
Owner

@wmmc88 this should be fixed now. thanks for reporting

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

No branches or pull requests

2 participants