HOME GUIDE OPERATIONS DOCS FAQ TECHNIQUES FORMATS INSTALL NEW TIPS WEB LINKS WADSWORTH

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:

  1. <EXP> is an expression
  2. <LC> is a logical comparator. The following comparators are allowed:
  3. EQ equal
    NE not equal
    GT greater
    GE greater/equal
    LT less
    LE less/equal
  4. <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

BACK TO SPIDER BACK TO WADSWORTH