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

Logical operators OR/AND not working #31

Open
yangzhaox opened this issue May 23, 2023 · 1 comment
Open

Logical operators OR/AND not working #31

yangzhaox opened this issue May 23, 2023 · 1 comment

Comments

@yangzhaox
Copy link

yangzhaox commented May 23, 2023

The following are supposed to be working according to README.md but not. @nikunjy

parser.Evaluate("x eq 1 OR x eq 2", map[string]interface{}{"x": 1})

It would be nice to support || and && as equivalent of and and or.

@nikunjy
Copy link
Owner

nikunjy commented Oct 24, 2023

Hey @yangzhaox yea I think I have that wrong only or and and are supported not the upper caps.
I will try to extend if I get some time today.

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

No branches or pull requests

2 participants