ELSE

Function:

The ELSE command is used in conjunction with the IF command. If an IF condition is false the statement block following the ELSE is executed.

Syntax:

IF(condition)
	statement-block1
ELSE
	statement-block2

Statement block 2 is executed only when the IF condition is false. ELSE commands may be concatenated with additional IF commands to form ELSE IF commands. Note that an ELSE causes its associated statement block to be executed only if all prior IF and ELSE IF conditions are false.

Examples:

IF(A>B) AMAX=A
ELSE       AMAX=B

IF(J>5)
CODE=TYPE
ELSE IF(J==4) CODE=KEY
ELSE IF(J< 1) CODE=NULL
ELSE CODE=YES

IF(TEST==0)
$(
CALL SUBR(N,TEST)
J=N+5
$)
ELSE IF(TEST>5) J=0