2 Loop Constructs

2.6 Conditional execution

The following keywords designate constructs that are useful when you want some loop clauses to operate under a specified condition:


If the specified condition is true, the succeeding loop clause is executed. If the specified condition is not true, the succeeding clause is skipped, and program control moves to the clause that follows the loop keywordelse. If the specified condition is not true and noelse clause is specified, the entire conditional construct is skipped.

The conditionally executable statement must begin with the loop keywordif,then, orunless. You can connect several clauses into one compound clause with the loop keywordand.

The loop keywordsif andwhen are synonyms; you can use them interchangeably.

2.6.1 - Reference pages

The Loop Facility - 9 SEP 1996

Generated with Harlequin WebMaker