# Directives

END_IF | End IF Directive

## Format

Mark the end of an 'IF' prior end of line: | IF expression THEN ... ELSE ... END_IF ...

Where:

expression | Condition to control processing.
... | Directives, processing.

#### Note:
FI is an accepted substitute for END_IF.

## Description

Use END_IF (or FI) to terminate an IF directive before the end of a statement or line. When an END_IF directive follows an IF directive, execution resumes immediately after the END_IF directive, regardless of whether the condition was found to be true or false.

## See Also

IF ... THEN ... ELSE Test Condition

## Example

00100 print "The customer has ",
00200 if bal<=0 \
then print "NO", \
else print "$",bal, \
end_if ;
print " credit available"
->BAL=0
->run
The customer has NO credit available
->BAL=1.98
->run
The customer has $ 1.98 credit available