Define feature variables

portrait de l'auteur Julie Trenque

Written by Julie Trenque

Updated on 02/08/2022

1 min


Was this content useful?

You can define feature variables (Number, Boolean, String or JSON) to remotely update the content of your feature flags in production. There is no limitation in the number of feature variables you can create.

Feature variables let you variabilize parts of your feature flag code so that you can dynamically assign values depending on your use case, without having to hard code them in your source code. So, instead of updating your application or website by deploying new code, you can directly update the feature flag remotely by updating the feature flag configuration.

A feature variable can be a number, a boolean, a string or a JSON code. To retrieve a feature variable content, you need to call the obtainFeatureVariable() method of our SDK right after calling the activateFeature() method.