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

Checking for empty array on fact #282

Open
robross0606 opened this issue Oct 8, 2021 · 1 comment
Open

Checking for empty array on fact #282

robross0606 opened this issue Oct 8, 2021 · 1 comment

Comments

@robross0606
Copy link

Is it possible to check for an array being (not) empty as a fact value? Or, perhaps it would be more flexible to be able to do array length comparisons?

@naveen-shetty
Copy link

You can build your own custom operators for that & add it to the engine. Here is are the examples
https://github.com/CacheControl/json-rules-engine/blob/master/examples/06-custom-operators.js

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