Language Elements
Logical operators
Logical operators compare two conditions or, in the case of
result is produced.
Logical Operators
Operator Function
&&
||
^^
!
Bitwise operators
Bitwise operators are keywords or symbols that perform a bit-by-bit operation between two items.
Bitwise Operators
Operator Function
&
|
^
~
<<
>>
Assignment operators
The assignment operators may appear only once in a single NetLinx statement.
Assignment Operators
Operator Function
=
++
--
The following rules apply to the use of assignment operators:
Refer to the Structures section on page 55 for information on structures.
40
Keyword
Logical And AND
Logical Or
OR
Logical Xor XOR
Logical Not NOT
Keyword
Bitwise And BAND
Bitwise Or
BOR
Bitwise Xor BXOR
Bitwise Not BNOT
Shift Left
LSHIFT
Shift Right
RSHIFT
Assignment
Increment by 1
Decrement by 1
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++)
I = j++;
, invert one condition. A true or false
NOT
// Legal
// Illegal
NetLinx Programming Language Reference Guide