System information

Software Crestron D3 Pro
4. You can use global variables in a conditional statement. In the example
below, the conditional statement selects a path of action depending on
whether you set the Home/Away variable to "Away".
Global Variables
A global variable allows you to access and modify a specified value from any
statement in the lighting program. For example, you can create a global variable
called "FrontGateStatus" with two possible values (or variable states), Open and
Closed. You can then define a conditional statement anywhere in your program that
selects a path of action depending on whether you set the front gate variable to
"Open" or "Closed".
To define a global variable
1. Click the Variable Editor
button. The Variable Editor shows two
windows, one for defined Variables, and the other for Variable States. Click
the New button under Variables. This will automatically create a new
variable with two Variable States called Value 1 and Value 2.
72 Crestron D3 Pro Reference Guide – DOC. 5998a