CacheControl / CacheControl/json-rules-engine

not boolean expression

Open
#269 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.1k
Forks
507
PR merge metrics
No merged PRs in 30d

Description

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
}]
}
},
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the rule-condition handling and existing condition syntax in the repository, then compare it with the proposed nested `not` and `all` example. Determine how negated conditions should be represented and validated, and confirm completion with coverage for the example behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.