Support $in operator
william8188 opened this issue · 3 comments
Is your feature request related to a problem? Please describe.
Like SQL, I want to make a condition, like where name in ("Jack", "Mike", "Ben")
.
But I find out there is no operators in grule like this $in
operator.
Describe the solution you'd like
Please support $in
operator.
Yes it would be a good addition, i actually solved this with ||
condition. (Just a workaround :))
For In condition:
Eg: (Fact.Name == "Jack" || Fact.Name == "Mike" || Fact.Name == "Ben")
For Not in Condition:
Eg: (Fact.Name != "Jack" && Fact.Name != "Mike" && Fact.Name != "Ben")
Just released 1.9.0.
In
function is now available.
https://github.com/hyperjumptech/grule-rule-engine/blob/master/docs/Function_en.md#stringinstring--bool
Just released 1.9.0.
In
function is now available.
https://github.com/hyperjumptech/grule-rule-engine/blob/master/docs/Function_en.md#stringinstring--bool
Thank you for your supporting. @newm4n