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

support for NOT operator #19

Open
kamaydeo opened this issue Jun 15, 2016 · 4 comments
Open

support for NOT operator #19

kamaydeo opened this issue Jun 15, 2016 · 4 comments

Comments

@kamaydeo
Copy link

As far as I know, AND and OR are supported. Logical NOT operator support will be useful as well.

@jirutka
Copy link
Owner

jirutka commented Jun 15, 2016

Could you please provide me some read-world example where it would be actually useful?

@kamaydeo
Copy link
Author

userType!=Employee and not (email=="*example.com*" or emails=="*example.org*" and salary < 100000)

It could be done using AND and OR combination but in some case NOT is more expressive.

@vineey
Copy link

vineey commented Jun 18, 2016

+1 I agree this should be supported, the intention is more straightforward

@RutledgePaulV
Copy link

RutledgePaulV commented Sep 14, 2016

+1 It's also useful for when you've generated a query dynamically and simply want to invert it based on your required logic rather than having to factor the not through. I've had to work around it myself.

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

4 participants