Control flow

IF and ELSE, level-88 condition names and the logical operators, then EVALUATE in both of its forms. PERFORM appears in all its shapes: simple and inline, TIMES and UNTIL, VARYING, and THRU over a range of paragraphs. The part closes on GO TO, on the reasons the course avoids it, and on a GO TO program rewritten without one.

5.1 IF and ELSE IF ... ELSE ... END-IF, a nested condition, a period that ends more than the writer meant Open 5.2 Level-88 condition names 88 with VALUE, SET ... TO TRUE, the FALSE branch, and one name for a range of values Open 5.3 AND, OR, NOT and precedence the abbreviated combined relation, parentheses, NOT before =, and a condition rewritten to say what it means Open 5.4 EVALUATE several subjects, WHEN OTHER, a menu, and a value that matches no branch Open 5.5 EVALUATE TRUE and ALSO EVALUATE TRUE, ALSO, a grade from two values, and the order of the WHENs Open 5.6 PERFORM: simple and inline PERFORM paragraph, inline PERFORM ... END-PERFORM, and the difference the compiler sees Open 5.7 PERFORM TIMES and UNTIL TIMES, UNTIL, TEST BEFORE and AFTER, and a loop that runs one time too many Open 5.8 PERFORM VARYING FROM, BY and UNTIL, a second counter with AFTER, and a table walked by two subscripts Open 5.9 PERFORM THRU a range of paragraphs, what runs inside it, and the order of the paragraphs Open 5.10 GO TO and why not GO TO, GO TO ... DEPENDING ON, a state machine written with it, and why the course avoids it Open 5.11 CONTINUE, NEXT SENTENCE and a rewrite CONTINUE, NEXT SENTENCE, scope terminators, and a GO TO program rewritten without one Open

Lessons