If..then..else - Interactive Technologies CueServer 2 User Manual

Table of Contents

Advertisement

Interactive Technologies, Inc.

If..Then..Else

Syntax
Command
If (<expression>) [Then] <action> [Endif]
If (<expression>) [Then] <action1> Else <action2> [Endif]
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
Expressions
statement.
Using Else
The Else keyword can be used to execute commands if the expression is false. Consider this example:
for more information about the kinds of expressions that can follow an If
CueServer 2 User's Manual - 18.5.18
Return
Description
Value
Tests expression
The
and performs action
result of
if true
action
The
Tests expression
result of
and performs
action1
action1 if true or
or
action2 if false
action2
Page 274 of 429

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CueServer 2 and is the answer not in the manual?

Related Products for Interactive Technologies CueServer 2

Table of Contents