# global

Declares one or more global variables for use in the FRED program

## Synopsis

global <variable1> <variable2> ...


## Description

A global statement declares one or more global variables. Variables must be defined within a variables block, where they can also be set to an initial value.

A global variable can be accessed and modified by any agent.

## Options

<variable1> <variable2> ...

The set of names to define as global variables, separated by a space.

## Examples

The following declares two variables, g_variable1 and g_variable2, and sets the initial value of the first global variable to $$4,907$$.

variables {
global g_variable1 g_variable2
g_variable1 = 4907
}