Contents
Up
Previous
Next


Logical operators


The logical operators are and, or, nand, nor, and xor with their normal meaning. These operators are defined for bit and boolean types, as well as one-dimensional arrays of a bit or boolean type. If a logical operator is used with one-dimensional arguments, then the arrays must be of the same length and the result is a one-dimensional array whose elements are the result of applying the operator to the corresponding elements of the array arguments.