Operators - Interactive Technologies CueServer 2 User Manual

Table of Contents

Advertisement

Interactive Technologies, Inc.

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
+
Addition
Subtraction
*
Multiplication 3 * 7
/
Division
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
+
Concatenation
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
==
Equal
Example Result
3 + 5
8
5 – 3
2
21
18 / 3
6
Example
Result
"Cue" + "Server"
"CueServer"
"CS" + 2
"CS2"
3 + " is a crowd"
"3 is a crowd"
Examples Result
5 == 5
1
3 == 5
0
CueServer 2 User's Manual - 18.5.18
Page 136 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?

Subscribe to Our Youtube Channel

Related Products for Interactive Technologies CueServer 2

Table of Contents