END_IF |
End IF Directive |
Mark the end of an 'IF' prior end of line: |
IF expression THEN ... ELSE ... END_IF ... |
expression |
Condition to control processing. |
... |
Directives, processing. |
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.
IF ... THEN ... ELSE Test Condition
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