Creating feature variations

- Navigate to your feature flag or create a new one.
- In the left sidebar, click Set up > Variations > Add variation.
- Edit your variation’s Name and Variation Key.
- Click Save.
Default feature variations
When you create a new feature flag, Kameleoon generates two default variations: On and Off.- Off Variation: Users assigned to this variation see your app or website as it appears when you turn off the feature flag. This variation lets you test new features on a limited group of users. Keep in mind that any custom variables you’ve created for the feature flag won’t be available in the Off variation.
- On Variation: The On variation presents your flagged feature’s default or control version. This variation serves as the baseline experience for your feature and will only use the default values for all defined feature variables.
The
getVariation() method returns the variation key associated with the user.