Format of IF-ENDIF construction is:

\If(<boolean value>)\
.............................................
\elsif(<boolean value>)\
.............................................
\elsif(<boolean value>)\
.............................................
\else\
.............................................
\endif\

\elsif\ and \else\ are optional.
<boolean value> may be a variable, data field or user defined function

Next topic: Scan cycle construction