Open robross0606 opened 3 years ago
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?
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
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?