CUE Design Director Script Language User Manual
Page 9

Reference Manual Design Director Script Language
www.cuesystem.com
Page 9 of 94
Numerical Constant
Numerical constant is in general a few of decimal digits entered after each other. In the text name type
object can also be used as a string constant.
There are two specially defined name constants:
Name
Value
Description
False
0
the value refers to a logical status ”no”, the condition is not fulfilled
True
65535
the value refers to a logical status ”yes”, the condition is fulfilled
Unary Operators
The unary operators mentioned in this grammar have the following semantics:
Operator
Symbol
Value
Sign
-
a bitwise complement is executed to a number and the result is incremented by
one. It refers to a sign change operation at the sign types
Logical not
not
a bitwise complement of a number. The value not true is false; the value not false
is true. But the value not 2 is 65533
Binary operators
The binary operators mentioned in this grammar have the following semantics:
Operator
Symbol
Value
multiplication *
the result is a product of expressions. In the case of overflow the error does not
occur, the result is trimmed ”It is all right without any error.”
division
/
the result is a quotient of expressions. In the case of division by a zero an error
occurs ”division by zero”
Modulo
mod
the result is a remainder after division. When dividing by a zero, an error
occurs ”division by a zero”
Plus
+
the result is the expressions sum, when overflow is trimmed, an error occurs ”It is
all right without any error”
Minus
-
the result is the difference of expressions. When overflow is trimmed , an error
does not happen ”It is all right without any error”
Relation
<,>, <=, =, <> Relates expressions. If the operation of comparison is fulfilled, then result is true
value. Otherwise the result of relation is false.
And
and
bitwise and executed above expressions. Anything and false is false.
Or
or
bitwise or executed above expressions. Anything or true is true
Exlusive Or
xor
bitwise xor executed above expressions. Anything xor true is similar to an
operation not, anything xor 0 does not change it leaves the value unchanged