|
@@ -81,13 +81,16 @@ The following condition will evaluate as true:
|
|
|
|
|
|
|
|
```json
|
|
```json
|
|
|
{
|
|
{
|
|
|
- "attr": "status",
|
|
|
|
|
|
|
+ "attr": "status.value",
|
|
|
"value": ["planned", "staging"],
|
|
"value": ["planned", "staging"],
|
|
|
"op": "in",
|
|
"op": "in",
|
|
|
"negate": true
|
|
"negate": true
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+!!! note "Evaluating static choice fields"
|
|
|
|
|
+ Pay close attention when evaluating static choice fields, such as the `status` field above. These fields typically render as a dictionary specifying both the field's raw value (`value`) and its human-friendly label (`label`). be sure to specify on which of these you want to match.
|
|
|
|
|
+
|
|
|
## Condition Sets
|
|
## Condition Sets
|
|
|
|
|
|
|
|
Multiple conditions can be combined into nested sets using AND or OR logic. This is done by declaring a JSON object with a single key (`and` or `or`) containing a list of condition objects and/or child condition sets.
|
|
Multiple conditions can be combined into nested sets using AND or OR logic. This is done by declaring a JSON object with a single key (`and` or `or`) containing a list of condition objects and/or child condition sets.
|
|
@@ -102,7 +105,7 @@ Multiple conditions can be combined into nested sets using AND or OR logic. This
|
|
|
{
|
|
{
|
|
|
"and": [
|
|
"and": [
|
|
|
{
|
|
{
|
|
|
- "attr": "status",
|
|
|
|
|
|
|
+ "attr": "status.value",
|
|
|
"value": "active"
|
|
"value": "active"
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|