Operators, Logical and bitwise operators – BrightSign BrightScript 3.0 Reference Manual User Manual
Page 15

10
OPERATORS
Operations in the innermost level of parentheses are performed first. Evaluation then proceeds according to the
precedence in the following table. Operations on the same precedence are left-associative, except for exponentiation,
which is right-associative.
Description
Symbol(s)
1.
Function Calls or Parentheses
()
2.
Array Operators
. , []
3.
Exponentiation
^
4.
Negation
–, +
5.
Multiplication, Division, Modulus
*, /, MOD
6.
Addition, Subtraction
+, -
7.
Comparison
<, >, = , <>, <=, >=
8.
Logical Negation
NOT
9.
Logical Conjunction
AND
10. Logical OR
OR
String Operators
The following operators work with strings:
<, >, =, <>, <=, >=, +
Function References
The
= and <> operators work on variables that contain function references and function literals.
Logical and Bitwise Operators
The
AND, OR, and NOT operators are used for logical (Boolean) comparisons if the arguments for these operators are
Boolean: