Sheltran - IF construct
IF <logical expression>
[ ELSEIF <logical expression>
- <logical expression> represents any valid FORTRAN logical
expression which can take a value .TRUE. or .FALSE. It need not be
surrounded by parentheses.
- ELSEIFs when present must precede any corresponding ELSE.
- The ELSE clause is optional.
- Instead of CIF ENDIF may also be used.
When the IF or ELSEIF condition has the value .TRUE., the statements
following are executed and control is transferred to the statement
following the CIF.
When the value is .FALSE., control is passed to the next ELSEIF and this
<logical expression> is evaluated.
When the IF and all ELSEIF clauses have a value which is .FALSE.,
control is passed to the statement following the corresponding ELSE or