AIPS HELP file for THEN in 31DEC13
As of Tue May 21 14:10:24 2013
HELP SECTION
THEN
Type: Psuedoverb - procedures only
Use: Used in the IF construction (see IF) to seperate the
logical condition from the statements to be executed
if that condition is true.
Grammar: IF condition THEN statement1;...
ELSE statementn;...; END
Or:
IF condition THEN statement1;...;END
where condition is a relational condition using =, <=,
>=, <>, &, ! or a logical variable. Statements 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 in procedures only.
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