# GetGlobalVariable

Source: https://help.malighting.com/grandMA3/2.4/HTML/keyword_getglobalvariable.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
To enter the GetGlobalVariable keyword in the command line, use one of the options:

- Type **GetGlobalVariable**
- Type the shortcut **Getg**

## Description

The GetGlobalVariable keyword is used to display global variables along with their values in the command line history. 

## Syntax

**GetGlobalVariable \["Variable \_Name"****]**

## Examples

- To display all variables in the command line history, type:

|                                                                    |                                            |
| ------------------------------------------------------------------ | ------------------------------------------ |
| ![](/img/grandma3/2-4/icon_commandline-input_logo_v2-0-a59235.png) | User name\[Fixture]>GetGlobalVariable "\*" |

 

- To display all variables beginning with the letter f, type:

|                                                                    |                                             |
| ------------------------------------------------------------------ | ------------------------------------------- |
| ![](/img/grandma3/2-4/icon_commandline-input_logo_v2-0-a59235.png) | User name\[Fixture]>GetGlobalVariable "f\*" |