COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-86
Conditional Form
Conditional Form
condition
is any conditional expression (see Conditional Expressions).
statement-1
is an imperative or conditional statement to be executed if the value of condition
is TRUE. It can contain other IF statements.
NEXT SENTENCE
specifies that control be passed directly to the end of the sentence containing the
IF statement. It is not recommended (see Usage Considerations:).
ELSE
ends statement-1.
statement-2
is an imperative or conditional statement to be executed if the value of condition
is FALSE. It can contain other IF statements.
Usage Considerations:
•
CONTINUE and END-IF Are Recommended Over NEXT SENTENCE
NEXT SENTENCE transfers control to the next period (.) while CONTINUE
transfers control to END-IF. Either or both statement-1 and statement-2 can
be CONTINUE statements.
IF
THEN
condition
statement-1
NEXT
ELSE statement-2
SENTENCE
NEXT SENTENCE
VST161.vsd