microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.6k stars 543 forks source link

Does the collection entity support matching #508

Closed huangyedie closed 1 year ago

huangyedie commented 1 year ago

Example: model:[{ A:"123" },{ A:"345" }]。

How should I configure rules to traverse matches?

If the first one matches, model [0]. A=="123", obviously this can only verify whether the first data matches.

huangyedie commented 1 year ago

solve:

.Any(r => r.A== \"1213\" || r.A== \"2345\")