Logical Operators The logical operators are:
Form and Interpretation of Logical Expressions. A set of formation rules is used to establish the interpretation of a logical expression that contains two or more logical operators. There is a precedence among the logical operators, which determines the order in which the operands are to be combined unless the order is changed by the use of parentheses. The precedence of the logical operators is as follows:
For example, in the expression A .OR. B .AND. C the .AND. operator has higher precedence than the .OR. operator; therefore, the interpretation of the above expression is the same as the interpretation of the expression A .OR. (B .AND. C) Value of Logical Factors, Terms, Disjuncts, and Expressions. The value of a logical factor involving .NOT. Is shown below:
The value of a logical term involving .AND. is shown below:
The value of a logical term involving .OR. is shown below:
The value of a logical term involving .EQV. is shown below:
The value of a logical term involving .NEQV. is shown below:
|