# Global Variables

Global variables are variables whose values are shared across all the configuration screens of a model. Their values can be used in weights, offsets, differential, expo settings, outputs, and in logical switch comparisons. The **Global Variables** screen of Model Settings shows the value of each global variable for each flight mode.

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-5956c97ca691772170282e2ebbbe45ac7a5589c8%2Fcolor_model_GVs.png?alt=media" alt=""><figcaption><p>Global variables screen</p></figcaption></figure>

Selecting a global variable from the global variable screen will give you the following options:

* **Edit** - Opens the global variable configuration screen for the selected global variable.
* **Clear** - Clears the global variable values for all flight modes for the selected global variable.

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-11b0705c098f4ad629f0e33856daba8111a0b37c%2FGVE.png?alt=media" alt=""><figcaption><p>Global Variable configuration screen.</p></figcaption></figure>

The global variable configuration screen is where you assign a value and other configuration options to a global variable. Additionally, you can select how the value of the global variable is defined for every flight mode - either the value is manually defined or inherited from another selected flight mode. It contains the following configuration options:

* **Name** - Name for the global variable. Three characters are allowed. If left blank, it will use the default GV# as the name.
* **Unit** - (optional) Allows you to add a **%** label to the displayed values when selected. It DOES NOT affect how the values are calculated.
* **Precision** - Allows you to select the number precision options whole numbers (**0.-**) and decimal (**0.0**). The default value is **0.-**
* **Min** - Defines the minimum that is allowed for the global variable.
* **Max** - Defines the maximum value that is allowed for the global variable.
* **Popup -** When enabled, a popup message will be displayed when the value of a GV changes with the new GV value (see image below).
* **FM0** - The value of the global variable on Flight Mode 0.
* **FM1 -> FM8** - When the toggle switch is enabled or disabled, the following applies:
  * Toggle switch disabled - global variable value for the selected flight mode is inherited from the flight mode defined in the drop-down.
  * Toggle switch enabled (highlighted) - the global variable value for the selected flight mode is manually defined in the text field.

<figure><img src="https://77164042-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUZeEhX4mYsDsoTCSjRyi%2Fuploads%2Fgit-blob-3bcce46e7de76e7544d8f6dcde585375bca474e2%2FGVE2.png?alt=media" alt=""><figcaption><p>Popup message of global variable change</p></figcaption></figure>
