Skip to content

Commit d11de7d

Browse files
committed
Revise Segment Condition
1 parent a6ddeb3 commit d11de7d

File tree

4 files changed

+58
-57
lines changed

4 files changed

+58
-57
lines changed

website/docs/targeting/feature-flag-evaluation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ In case the prerequisite flag is missing or there is a type mismatch between the
4646

4747
### Evaluation of a Segment Condition
4848

49-
The SDK looks up the segment referenced by the condition and evaluates the condition described by the segment similarly to [User Conditions](../targeting-rule/user-condition). Then, the result is checked against the comparator. In the case of `IS IN SEGMENT` the result of the Segment Condition will be the same as the result of the segment. The result will be negated in the case of `IS NOT IN SEGMENT`.
49+
The SDK looks up the segment referenced by the condition and evaluates the condition described by the segment similarly to [User Conditions](../targeting-rule/user-condition). Then, the result is checked against the comparator. In the case of **IS IN SEGMENT**, the result of the Segment Condition will be the same as the result of the segment. In the case of **IS NOT IN SEGMENT**, the result will be negated.
5050

5151
If the segment evaluates to `cannot evaluate`, so does the Segment Condition.
5252

@@ -71,7 +71,7 @@ The evaluation process is entirely implemented within the SDKs, meaning your use
7171

7272
### Example Scenarios for Percentage Options
7373

74-
Imagine you have two users, Jane and Joe, and you're experimenting with two different feature flags (`isTwitterSharingEnabled` and `isFacebookSharingEnabled`) that use percentage-based targeting. In these scenarios, we see how Percentage Options allow for a controlled and gradual rollout of features, ensuring a smooth transition for users like Jane and Joe.
74+
Imagine you have two users, Jane and Joe, and you're experimenting with two different feature flags (**isTwitterSharingEnabled** and **isFacebookSharingEnabled**) that use percentage-based targeting. In these scenarios, we see how Percentage Options allow for a controlled and gradual rollout of features, ensuring a smooth transition for users like Jane and Joe.
7575

7676
First, the users are assigned a number between 0 and 99 based on the hash of the feature flag's key and their identifier. According to the Percentage Options specified on the Dashboard, this number determines which group they are assigned to, i.e. whether or not the feature is enabled for them.
7777

@@ -98,10 +98,10 @@ In this case both feature flags are enabled for only 10% of users.
9898
| Joe | 32 >= 10 <br/>→ **OFF** | 12 >= 10 <br/>→ **OFF** |
9999

100100
:::info
101-
Despite both feature flags being set to 10% ON / 90% OFF, the `isTwitterSharingEnabled` feature flag is only enabled for Jane, while `isFacebookSharingEnabled` is disabled for both of them. This happens because the feature flag key is also involved in computing the hash.
101+
Despite both feature flags being set to 10% ON / 90% OFF, the **isTwitterSharingEnabled** feature flag is only enabled for Jane, while **isFacebookSharingEnabled** is disabled for both of them. This happens because the feature flag key is also involved in computing the hash.
102102
:::
103103

104-
3\. **Increasing `isTwitterSharingEnabled` to 40% ON / 60% OFF**
104+
3\. **Increasing _isTwitterSharingEnabled_ to 40% ON / 60% OFF**
105105

106106
| | isTwitterSharingEnabled <br/> 40% ON / 60% OFF | isFacebookSharingEnabled <br/> 10% ON / 90% OFF |
107107
| ---- | ---------------------------------------------- | ----------------------------------------------- |

0 commit comments

Comments
 (0)