What is a variant (variation) in feature flags?
Updated November 15, 2026
A variant (LaunchDarkly calls it a variation) is one of the possible values a feature flag can return, such as on and off, or control and treatment in an experiment, usually with a name that identifies it.
How do variants work?
A boolean flag has two variants; a multivariate flag can have several, with string, number or JSON values. The flag's targeting rules decide which variant each user gets, and percentage rollouts or experiments split users between variants.
| Term | Where | Definition |
|---|---|---|
| Variant | OpenFeature | "A semantic identifier for a value"; evaluation details can include the variant name alongside the value (it's optional, and unset on errors) |
| Variation | LaunchDarkly | Variations "determine what a context or user receives"; boolean flags have two, multivariate flags string, number or JSON values |
| Variant | Unleash | Defined by a name and a weight, with an optional payload, attached to activation strategies |
Sources: OpenFeature glossary and types, LaunchDarkly variations, Unleash feature flags.
Why does the variant name matter?
Reporting uses it: an experiment compares results by variant, and logs show which variant a user got even when two variants share a value. Referring to a variant that doesn't exist is an easy mistake in hand-written flag files, and JSON Schema validation doesn't catch it; some linters do (feature flags in CI/CD).