Checking for empty array on fact
robross0606 opened this issue · 1 comments
robross0606 commented
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 commented
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