# Scene (global) variables

The Scene (global) variables part is used to declare variables with scene-wide scope. Variables declared using this part will be available to all flowcharts within the scene. In this way, scene variables are a type of global variable.

To declare a scene variable:

1. Select the Scene (global) variables part.
2. Press the '+' button to add a variable to the scene variables list (this button appears at the bottom of the part when the mouse is over it).
3. Click on 'Variable' to change the variable name.
4. Click on 'Initial value' to supply an initial value for the variable.

Tips for use:

- To remove a scene variable, press the '-' button which appears alongside the variable.
- Press the Reset button on the front of the Scene (global) variables part to return all scene variables to their initial values.
- Scene variables return to their initial values when the file containing the scene is opened or reopened.

## See also:

- Variable scope
- Using flowcharts parts