You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utilities/feature_flags.md
+14-3
Original file line number
Diff line number
Diff line change
@@ -366,7 +366,7 @@ You can use `get_enabled_features` method for scenarios where you need a list of
366
366
"when_match": true,
367
367
"conditions": [
368
368
{
369
-
"action": "IN",
369
+
"action": "KEY_IN_VALUE",
370
370
"key": "CloudFront-Viewer-Country",
371
371
"value": ["NL", "IE", "UK", "PL", "PT"]
372
372
}
@@ -450,9 +450,20 @@ The `conditions` block is a list of conditions that contain `action`, `key`, and
450
450
}
451
451
```
452
452
453
-
The `action` configuration can have 5 different values: `EQUALS`, `STARTSWITH`, `ENDSWITH`, `KEY_IN_VALUE`, `KEY_NOT_IN_VALUE`, `VALUE_IN_KEY`, and `VALUE_NOT_IN_KEY`. Note that `IN`and `NOT_IN` are also defined and are synonymous with `KEY_IN_VALUE` and `KEY_NOT_IN_VALUE` respectively.
453
+
The `action` configuration can have the following values, where the expressions **`a`** is the `key`and **`b`** is the `value` above:
454
454
455
-
The `key` and `value` will be compared to the input from the context parameter.
!!! info "The `**key**` and `**value**` will be compared to the input from the `**context**` parameter."
456
467
457
468
**For multiple conditions**, we will evaluate the list of conditions as a logical `AND`, so all conditions needs to match to return `when_match` value.
0 commit comments