Creating feature variables

- Navigate to your feature flag or create a new one.
- In the left sidebar, click Set Up > Variables > Add Variable.
- Select your variable’s Type.
- If you select Enum, enter a list of allowed values separated by commas. This type creates a predefined list of options that you can select from when you define feature variations, rather than typing values manually.
- Enter a Variable Key.
- Set the Default Value.
- For Enum variables, select the default value from the list you defined in step 3.
- Click Save.
To retrieve a feature variable from your source code, you must call the
getVariation() method. Please note that if you use feature variations, Kameleoon will automatically bucket the user in a variation and return the value of the variable that has been defined in the variation (you do not need to call the getVariation() method).