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.
044
IF and ELSE
IF ... ELSE ... END-IF, a nested condition, a period that ends more than the writer meant
Open
045
Level-88 condition names
88 with VALUE, SET ... TO TRUE, the FALSE branch, and one name for a range of values
Open
046
AND, OR, NOT and precedence
the abbreviated combined relation, parentheses, NOT before =, and a condition rewritten to say what it means
Open
047
EVALUATE
several subjects, WHEN OTHER, a menu, and a value that matches no branch
Open
048
EVALUATE TRUE and ALSO
EVALUATE TRUE, ALSO, a grade from two values, and the order of the WHENs
Open
049
PERFORM: simple and inline
PERFORM paragraph, inline PERFORM ... END-PERFORM, and the difference the compiler sees
Open
050
PERFORM TIMES and UNTIL
TIMES, UNTIL, TEST BEFORE and AFTER, and a loop that runs one time too many
Open
051
PERFORM VARYING
FROM, BY and UNTIL, a second counter with AFTER, and a table walked by two subscripts
Open
052
PERFORM THRU
a range of paragraphs, what runs inside it, and the order of the paragraphs
Open
053
GO TO and why not
GO TO, GO TO ... DEPENDING ON, a state machine written with it, and why the course avoids it
Open
054
CONTINUE, NEXT SENTENCE and a rewrite
CONTINUE, NEXT SENTENCE, scope terminators, and a GO TO program rewritten without one
Open