
Variables
A variable is a symbol that holds and represents a value. Variable symbols are names such as
x
,
MyVariable
, or
lcd.backlight
. Variables can hold numbers (such as
3
or
12.7
) or strings (such as
Hello
World
).
CueServer uses two different kinds of variables: User Variables and System Variables. User variables can
be any combination of printable letters, numbers, the underscore (_) or hyphen (-). System variables are
similar, but must contain a dot (.) character. The dot character is how the CueServer distinguishes between
User and System variables.
Assigning Values to Variables
There are two ways to assign a value to a variable. The first is with the
command. Here are a few
examples:
"x" = 3
"MyVariable" = 42
"Message" = "Hello World"
"y" = ('x' + 3)
"caption" = "Press " + 'y' + " to Start"
The first line assigns the number
3
to the variable
x
. The second assigns the number
42
to the variable
MyVariable
. The third assigns the string
Hello World
to the variable
Message
. The fourth assigns the result
of the expression
‘x’+3
to the variable
y
. The last example assigns a string made of several smaller strings
(“Press “, followed by the value of variable ‘y’, followed by “ to Start”) into the variable
caption
.
The second way to assign a value to a variable is with the
command. Here are a few examples:
Set x 3
Set MyVariable 42
Set Message "Hello World"
Set y ('x' + 3)
Set caption ("Press " + 'y' + " to Start")
These examples are the same as above, except that the
command is used instead of using the
command.
Interactive Technologies, Inc.
CueServer 2 User's Manual - 18.5.18
Page 138 of 429
Содержание CueServer 2
Страница 95: ... U20_3BE S18_3LE S18_3BE U18_3LE Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 93 of 429 ...
Страница 168: ...See Also At Off On Set Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 166 of 429 ...
Страница 187: ...See Also Playback Release Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 185 of 429 ...
Страница 223: ...See Also Release Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 221 of 429 ...
Страница 238: ...See Also Clear Playback Press Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 236 of 429 ...
Страница 260: ...See Also Record Group Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 258 of 429 ...
Страница 286: ...Web Server Environment Variables Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 284 of 429 ...
Страница 342: ...Show File Format Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 340 of 429 ...
Страница 346: ...Configuration Files show cfg Interactive Technologies Inc CueServer 2 User s Manual 18 5 18 Page 344 of 429 ...