
If..Then..Else
Syntax
Command
Description
Return
Value
If (<expression>) [Then] <action> [Endif]
Tests
expression
and performs
action
if true
The
result of
action
If (<expression>) [Then] <action1> Else <action2> [Endif]
Tests
expression
and performs
action1
if true or
action2
if false
The
result of
action1
or
action2
Abbreviation
None
Description
The
If .. Then .. Else
statements are used to conditionally execute commands based on the value of an
expression.
Consider this command:
If ('x' == 1) Then Cue 1 Go
The above example first checks the value of the variable
x
, and if it is equal to 1, then Cue 1 is executed.
On the other hand, if
x
is not equal to 1, then nothing will happen. Since no commands are present after the
“Cue 1 Go”, an
EndIf
is not necessary.
See the section on
for more information about the kinds of expressions that can follow an
If
statement.
Using Else
The
Else
keyword can be used to execute commands if the expression is false. Consider this example:
Interactive Technologies, Inc.
CueServer 2 User's Manual - 18.5.18
Page 274 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 ...