Skip to content

Commit 25cea63

Browse files
committed
Revise Targeting Rule Overview
1 parent fdd1163 commit 25cea63

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

website/docs/targeting/targeting-rule/targeting-rule-overview.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Targeting Rules are in an **OR** relationship, meaning that the Targeting Ru
1818

1919
## How to add a Targeting Rule?
2020

21-
You can add a Targeting Rule to a feature flag on the Dashboard by clicking on the `+IF` ("Add Targeting Rule") button. Add more Targeting Rules by clicking on the `+OR` button at the bottom of the Targeting Rule.
21+
You can add a Targeting Rule to a feature flag on the Dashboard by clicking on the **+IF** ("Add targeting rule") button. Add more Targeting Rules by clicking on the **+OR** button at the bottom of the Targeting Rule.
2222

2323
![Add Targeting Rule](/assets/targeting/targeting-rule/add-rule.png)
2424

@@ -60,20 +60,20 @@ The order of the Targeting Rules can be changed on the Dashboard by dragging and
6060
In our demo company (Whisker Co.) we have a new feature in our mobile app that notifies frequent shopper cat owners about the cat-friendly cafés in the neighborhood.
6161

6262
#### Goal
63-
Since this feature is new, we want to make sure that only frequent shoppers and cat owners who have the right version of the app receive these notifications. The earlier versions of the app don't have this feature, so we want to make sure that anyone higher than version 3.0.0 receives the notifications.
63+
Since this feature is new, we want to make sure that only frequent shoppers and cat owners who have the right version of the app receive these notifications. The earlier versions of the app don't have this feature, so we want to make sure that only those who are running a version higher than 3.0.0 receive the notifications.
6464

6565
#### Solution
66-
We can achieve this by adding a Targeting Rule to the `Enable Cafe Notifications` feature flag. The Targeting Rule will have two conditions:
67-
- User Condition: `AppVersion` is greater than `3.0.0`
68-
- Segment Condition: `Frequent Shoppers`
66+
We can achieve this by adding a Targeting Rule to the **Enable Cafe Notifications** feature flag. The Targeting Rule will have two conditions:
67+
- User Condition: user attribute **AppVersion** is greater than **3.0.0**
68+
- Segment Condition: user is in segment **Frequent Shoppers**
6969

7070
On the Dashboard:
7171
![Targeting Rule example](/assets/targeting/targeting-rule/and-example.png)
7272

7373
In the code:
7474
```js
7575
const userObject = new configcat.User(userId, userEmail, undefined, {
76-
AppVersion: `3.1.2`
76+
AppVersion: '3.1.2'
7777
});
7878

7979
const value = await configCatClient.getValueAsync("enableCafeNotifications", false, userObject);

0 commit comments

Comments
 (0)