1.

How is the NEXT SENTENCE statement different from CONTINUE statement?

Answer»

The CONTINUE statement is like a null statement that indicates no operation and the control needs to be passed to the next executable instruction after explicit scope terminator. It can be USED anywhere in conditional STATEMENTS or imperative statements are used. Example syntax for CONTINUE in case of IF construct is:

IF condition-1 THEN {statement-1 ... | CONTINUE}[ELSE {statement-2 ... | CONTINUE}][END-IF]

The NEXT SENTENCE statement does the task of simply TRANSFERRING the control to an implicit CONTINUE statement that is present IMMEDIATELY after the next separator period. If the statement is specified along with the END-IF statement then the control passes to the statement after the closest following period. It is mainly used to TRANSFER control to the next sentence.

IF condition-1 THEN {statement-1 ... | NEXT SENTENCE}


Discussion

No Comment Found