A complex condition is formed by combining simple conditions, combined conditions, or complex conditions with logical operators, or negating those conditions with logical negation.
Each logical operator must be preceded and followed by a space. The following table shows the logical operators and their meanings.Logical operator | Name | Meaning |
---|---|---|
AND | Logical conjunction | The truth value is true when both conditions are true. |
OR | Logical inclusive OR | The truth value is true when either or both conditions are true. |
NOT | Logical negation | Reversal of truth value (the truth value is true if the condition is false). |
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!