Language Elements
40
NetLinx Programming Language Reference Guide
Logical operators
Logical operators compare two conditions or, in the case of NOT, invert one condition. A true or false
result is produced.
Bitwise operators
Bitwise operators are keywords or symbols that perform a bit-by-bit operation between two items.
Assignment operators
The assignment operators may appear only once in a single NetLinx statement.
The following rules apply to the use of assignment operators:
 The "=" operator may be used to assign:
 Expressions to intrinsic type variables (see theData Types section on page 50)
 Arrays to other arrays of matching size and type
 Structures to other structures of the same type
 The "++" and "--" operators are statements and cannot appear within expressions. For
example:
FOR (I=1; I<10; I++) // Legal
I = j++; // Illegal
Logical Operators
Operator Function Keyword
&& Logical And AND
|| Logical Or OR
^^ Logical Xor XOR
! Logical Not NOT
Bitwise Operators
Operator Function Keyword
& Bitwise And BAND
| Bitwise Or BOR
^ Bitwise Xor BXOR
~ Bitwise Not BNOT
<< Shift Left LSHIFT
>> Shift Right RSHIFT
Assignment Operators
Operator Function
= Assignment
++ Increment by 1
-- Decrement by 1
Refer to the Structures section on page 55 for information on structures.