COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-73
EVALUATE
•
Execution of the EVALUATE Statement
Execution of the EVALUATE statement begins with the comparison phase
illustrated in Figure 9-3. A comparison is satisfied if one of these conditions is true:
°
The object is ANY (and the value of the subject is irrelevant).
°
The corresponding subject and object were both assigned TRUE or both
assigned FALSE.
°
The corresponding subject and object were assigned the same type of
values (numeric or nonnumeric) and the value assigned to the subject is
equal to the value (or within the range of values) assigned to the object,
according to the rules for comparison defined for a relation condition (see
Relation Conditions in General).
If each comparison in an object-list is satisfied, the object-list
“qualifies.” After the comparison phase ends, execution of the EVALUATE
statement proceeds as shown in Figure 9-4.