IF - Conditional expression execution (Scripting operation)
(11/14/06)
PURPOSE
To allow evaluation of a conditional expression or loop iteration control (modeled after the FORTRAN 'IF' statement).
SEE ALSO
IF_GOTO
[Conditional jump (Scripting operation)]
IF_THEN
[Conditional execution of operations (Scripting operation)]
DO
[Start of DO loop (Scripting operation)]
USAGE
.OPERATION: IF(<EXP>.<LC>.<EXP>) <R> = <EXP>
<or>
IF(<EXP>.<LC>.<EXP>) EXIT
<or>
IF(<EXP>.<LC>.<EXP>) CYCLE
Where:
<EXP> is an
expression
<LC> is a logical comparator. The following comparators are allowed:
EQ equal
NE not equal
GT greater
GE greater/equal
LT less
LE less/equal
<R> is a register variable.
EXAMPLES:
IF([xlen].GE.15.) [xpad]=57
IF([xlen].LT.(13-2)) [resol]=5.6
IF([xlen].LT.(13-3)) CYCLE
(Within a DO loop)
SUBROUTINES
LOGIFQ
CALLER
SPIDER
©
Copyright Notice
/ Enquiries:
spider@wadsworth.org