EVALUATE
statement brings infix operators into the language in a place where space-separated expressions are allowed.A-B
(single field), A -B
(two expressions: one field and one unary expression) and A - B
(a binary subtraction of two fields).WHEN
-branches consist of statements, not sentences.WHEN OTHER
clause within each EVALUATE
.WHEN
branches: grouping of multiple conditions is done by the WHEN
clause itself, like in 4GLs like AppBuilder, so WHEN 1 WHEN 2 DISPLAY "OK"
in COBOL would look like WHEN 1 2 DISPLAY "OK"
in BabyCobol.EVALUATE
has ALSO
clauses, then each WHEN
need to have that exact number of ALSO
clauses, except for WHEN OTHER
.NEXT SENTENCE
in the middle of EVALUATE
statement works as usual, exiting it and continuing at the next sentence after it.