AmigaOS 3.1 Command Reference

ENDIF


Format:
ENDIF

Template:
(none)

Purpose:
To terminate an IF block in a script file.

Path:
Internal

Specification:


ENDIF is used in scripts at the end of an IF block. If the IF condition is
not true, or if the true-condition commands were executed and an ELSE has
been encountered, the execution of the script will skip to the next ENDIF
command. Every IF statement must be terminated by an ENDIF.

The ENDIF applies to the most recent IF or ELSE command.

See also:

IF
ELSE


Converted from AmigaGuide to HTML by Jaruzel