Sieve icon indicating copy to clipboard operation
Sieve copied to clipboard

Expression.Or (|| operator)

Open bugproof opened this issue 5 years ago • 2 comments

Sieve is quite limited when it comes to complex conditions. Make it possible to use Expression.Or so something like filters=name==fu manchu||age=70,country=China

bugproof avatar Apr 24 '19 08:04 bugproof

I have the same issue, I want to create a complex query with multiple "AND" and "OR" conditions with parentheses, example: (name==fu manchu | age==70),(country==China | country==Iraq) @wrathofodin Any updates?

emech-en avatar Jul 28 '19 13:07 emech-en

I'm using custom sort/filter methods to do more complex queries but they're not perfect. I could try to add it but I don't have time for that right now. See how and currently works:

https://github.com/Biarity/Sieve/blob/master/Sieve/Services/SieveProcessor.cs#L250

bugproof avatar Jul 29 '19 08:07 bugproof