Vadim Zaytsev
aka @
grammarware
BabyCobol
:
IF
a statement to branch conditionally to a paragraph within a program
Format
IF
BooleanExpression
THEN
Statement
ELSE
Statement
END
Remarks
an
END
-less
IF
is terminated at the end of the sentence (by
.
)
dangling
ELSE
is not allowed and should produce an error
note that both branches of the
IF
consist of statements, not sentences, so dots inside the entire
IF
construct are not allowed
Origins
AppBuilder
IF
CLIST
IF
COBOL
IF
FORTRAN
IF
PL/I
IF
REXX
IF
RPG
CAB
ELSE
ELSEIF
BabyCobol is a project by
Dr. Vadim Zaytsev
a.k.a. @
grammarware
. Page last updated in October 2023.