> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# The off variation

<View title="Developer" />

<View title="Federal docs" />

<View title="EU docs" />

This topic explains how to set the off variation for a flag.

When the toggle is turned off, LaunchDarkly serves the default off variation for your feature flag. For boolean flags, the default off variation is set to `false`, but you can change this if you like. For multivariate flags, you select one of your custom variations.

The off variation is different from the default rule. The default rule determines which variation a flag serves, when toggled on, to contexts that don't match any of the flag's previous targeting rules. To learn more, read [The default rule](/docs/home/flags/default-rule).

The off variation is also different from the fallback value. The fallback value is the value that contexts receive if your application cannot connect to LaunchDarkly. To learn more, read [Fallback value](/docs/home/getting-started/vocabulary#fallback-value).

## Set the off variation

You can customize the default off variation for both boolean and multivariate flags on each flag's **Targeting** tab, or in your flag templates. To learn more, read [Flag templates](/docs/home/flags/templates).

If you do not specify a default off variation, then the SDK will return the [fallback value](/docs/home/getting-started/vocabulary#fallback-value) defined in your code when the flag is off.

<Tip>
  **You can also use the JSON editor**

  To learn how to set the off variation using JSON, read [Off variation](/docs/home/flags/json-targeting#off-variation).
</Tip>

<Note>
  **Setting a fallback value in your SDK call**

  Regardless of how you set up targeting for your feature flag, each time you evaluate a flag from the SDK, you must include a fallback value as one of the parameters. This fallback value is the value served to the context if the SDK cannot connect to LaunchDarkly. To learn more, read [Flag variation evaluation](/docs/sdk/features/evaluating).
</Note>
