cobol IF statement


The conditional expression and selection statement. Use of explicit scope terminators is recommended. COBOL conditional expressions allow shortforms, where the current identifier (and conditional) is assumed through multiple condition tests, unless explicitly given.

IF A = 1 OR 2 ...

is equivalent to

IF A = 1 OR A = 2 ...

IF statement syntax diagram