# 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://4127893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG9cXG2SsywqpT8oP5rLH%2Fuploads%2FNBUpjtNwxjD5uZ3L79Hb%2Fglobalvariables1.jpg?alt=media&#x26;token=11d53eb9-c589-4122-971b-960bcaa343c5" 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://4127893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FG9cXG2SsywqpT8oP5rLH%2Fuploads%2F6UvXqxfTPVzwwGh4spSz%2Fglobalvariables2.jpg?alt=media&#x26;token=c342f4fd-7fc0-4a08-919a-1a308469ff0c" 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.
* **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.
