AIPS HELP file for ELSE in 31DEC13
As of Thu May 23 21:14:18 2013
HELP SECTION
ELSE
Type: Pseudoverb
Use: Used in the IF construction (see IF) to identify a set of
statements to be executed if a logical condition is false
Grammar: IF condition THEN statement1;...
ELSE statementn;...; END
where condition is a logical statement, either a single
"logical" variable or a relational condition using =,
<=, >=, <>, &, ! or a logical variable. Statementi are
AIPS statements. The statements may be separated by
semi-colons as shown above or they may be on separate
lines. IF...THEN...ELSE may be used only in procedures.
Examples: IF A = B THEN PRINT 'A = B'; A=7;
ELSE PRINT 'A <> B'; A=8; END
IF A <= B THEN PRINT 'A <= B'; C=9; END
EXPLAIN SECTION