A feature configuration is a set of **variables** associated with a feature that you can set as part of a feature test. Defining feature variables allows you to iterate on your feature without redeploying the code. Run feature tests to determine the optimal combination of variable values, then set those values as your default feature configuration and launch using a rollout.
## Add a feature configuration
To add feature configuration variables:
On the Features dashboard, click the name of the feature you want to configure.
Click _Add Variable_.
Type a unique variable key, select a type, and enter a default value for each variation in the configuration.
Click _Add Variable_ to add another variable.
Click _Save_ when you are finished adding variables for your feature.

Deploy the feature configuration. When you add a feature configuration, Optimizely updates the feature’s example code to include feature variable accessors. The image shows how variable values are dynamically assigned if the feature flag is active.

The SDKs offer different Get Feature Variable methods based on the variable's datatype (boolean, double, integer, or string). The maximum length of a string variable is 1500 characters.
The example shows how variable values are dynamically assigned if the feature flag is active.