json-rules-engine icon indicating copy to clipboard operation
json-rules-engine copied to clipboard

not boolean expression

Open liquid36 opened this issue 3 years ago • 1 comments

is it posible to implement a not boolean expression? Example:

conditions: {
    not: {
      all: [{
        fact: 'gameDuration',
        operator: 'equal',
        value: 40
      }, {
        fact: 'personalFoulCount',
        operator: 'greaterThanInclusive',
        value: 5
      }]   
    }
},

liquid36 avatar Jun 16 '21 17:06 liquid36

@liquid36 I've put up a PR addressing this issue if you wanted to take a look: https://github.com/CacheControl/json-rules-engine/pull/275

andycoopcode avatar Jul 21 '21 18:07 andycoopcode