
Operators
The CueScript language allows for operators to be used in expressions. Operators are symbols that appear
in-between two values that “operate” on those values. Common operators include mathematical functions
such as
+
and
–
for addition and subtraction, and boolean functions such as
And
, and
Or
.
Mathematical Operators
The following operators are mathematic, meaning that they perform functions on numbers:
Operator Function
Example Result
+
Addition
3 + 5
8
–
Subtraction
5 – 3
2
*
Multiplication 3 * 7
21
/
Division
18 / 3
6
Concatenation Operator
The following operator performs its function on strings. Shared with the Addition Operator, if either side of
the “+” is a string, the result will be a string:
Operator Function
Example
Result
+
Concatenation
“Cue” + “Server”
“CS” + 2
3 + “ is a crowd”
“CueServer”
“CS2”
“3 is a crowd”
Boolean Operators
The following operators are boolean, meaning that they compare two values in a true or false context. Note
that the result of a boolean operator will always be either 0 (meaning false) or 1 (meaning true).
Operator Function
Examples Result
==
Equal
5 == 5
3 == 5
1
0
Interactive Technologies, Inc.
CueServer 2 User's Manual - 18.5.18
Page 136 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 ...