Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


Negated simple conditions

A simple condition is negated through the use of the logical operator NOT.

Format
Read syntax diagramSkip visual syntax diagram>>-NOT--condition-1--------------------------------------------><
 

The negated simple condition gives the opposite truth value of the simple condition. That is, if the truth value of the simple condition is true, then the truth value of that same negated simple condition is false, and vice versa.

Placing a negated simple condition within parentheses does not change its truth value. That is, the following two statements are equivalent:

NOT A IS EQUAL TO B.
NOT (A IS EQUAL TO B).

Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)