4 expressions with binary operators, 1 maxl multiplicative operators, Expressions formed with unary operators – ElmoMC Multi-Axis Motion Controller-Maestro User Manual
Page 78: Unary minus operator (–), Logical not operator (!)

The following example illustrates the logical NOT operator (!):
if( !(x < y) )
If x is greater than or equal to y, the result of the expression is 1 (true). If x is less than
y
, the result is 0 (false).
Unary arithmetic operations on pointers are illegal.
5.4.1.4
Expressions with Binary Operators
Binary operators act on two operands in an expression. The binary operators are:
• Multiplicative Operators
• Multiplication (*)
• Division (/)
• Modulo (%)
• Addition (+)
• Subtraction (–)
• Right shift (>>)
• Left shift (<<)
• Relational and Equality Operators
• Less than (<)
• Greater than (>)
• Less than or equal to (<=)
• Greater than or equal to (>=)
• Equal to (==)
• Not equal to (!=)
• Bitwise AND (&)
• Bitwise exclusive OR (^)
• Bitwise inclusive OR (|)
• Logical AND (&&)
• Logical OR (||)
5.4.1.4.1 MAXL Multiplicative Operators
The multiplicative operators are:
• Multiplication (*)
• Division (/)
• Modulo or “remainder from division” (%)
These binary operators have left-to-right associativity.
Maestro
Software Manual
MAXL Program Language
MAN-MASSW (Ver. Q)
5-16