Add "Not" predicate operator in the Segment rules
We should have an "Add AND NOT" as per below:

Would also mean updating https://github.com/Flagsmith/flagsmith-engine
Update Feb 2022!
Actually think a better solution here is to NOT the segment override within the specific flag. So when overriding a flag, allow the user to NOT the segment. I.e.
I want all users NOT within this segment to receive this override.
Added frontend under flag "not_operator", presumed format would be type:"NOT". The flag allows for adding an array of supported clientside evaluation SDKs (see staging for an example, leaving empty will remove the tooltip).
[
{
"type": "ALL",
"rules": [
{
"type": "ANY",
"rules": [],
"conditions": [
{
"operator": "EQUAL",
"property": "test",
"value": "test"
}
]
},
{
"type": "NOT",
"conditions": [
{
"property": "test",
"operator": "EQUAL",
"value": "test2"
}
]
}
],
"conditions": []
}
]
As discussed internaly, the proposed operator should actually be "NONE" (and is already supported by engine implementations).
This is now available under the not_operator flag, I've tested my end and users do seem to be correctly assigned to segments based on the rules.
Hi, is the frontend of and not still being implemented? I am not able to see the and not button in our on-prem setup.
Heads up @kyle-ssg ?
This is now available under the not_operator flag, I've tested my end and users do seem to be correctly assigned to segments based on the rules.
This @dabeeeenster, we need to simply turn on the not_operator feature for self hosted defaults if we're happy with it.
OK! NOT operator is live for self hosted installs.