Prev Up Next
Go backward to Comparison operators (EQ,NE,GE,LE,GT,LT)
Go up to Loopif...loopfail...command (parameter-list environment)
Go forward to Masking operator (MASKEDBY)

Filtering operators (PASSES,FAILS)


LOOPIF <list-expr> PASSES|FAILS (<lower-limit> , <upper-limit>) ...



LOOPIF <list-expr> PASSES|FAILS <gate-array-name>(<index>) ...


The first form of the command allows valid member of <parameter-list> to tested against the gate defined by the expressions <lower-limit> and <upper-limit>. In the second form of the command each valid member of <parameter-list> to tested against a gate in the array <gate-array-name> where the array element number used is given by the expression <index>, eg.
*DATA
GATEARRAY TACGATES
1 (100 4000)  2 (90 4000) $...$
 ...
*COMMANDS
CREATELIST  GELIST  FROM  GE
LOOPIF $GROUPX=GELIST.TAC PASSES TACGATES($GROUPX) {
     ...
    }

LOOPIF...PASSES is true for each case where a member of <parameter-list> falls inside the gate defined by <lower-limit> and <upper-limit> inclusive. Conversely LOOPIF...FAILS is true for each case where a member of <parameter-list> is present in the event and falls outside the limits of the gate.


support@ns.ph.liv.ac.uk

Prev Up Next