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 the
Data 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.
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...