IF <sortword>|(<expression>) PASSES (<lower-limit> , <upper-limit>) ...
causes spectrum SPEC1 to be incremented if the value of sortword GAMA lies between 100 and the value of HLIMIT (inclusive).IF GAMA PASSES (100 , HLIMIT) INC SPEC1(GAMB)
If <upper limit> is less than <lower limit> then the IF test will always give the result FALSE.
IF <sortword>|(<expression>) PASSES <gate-array-name>(<index>) ...
EXTRACT GELIST INTO $G1 IF $G1.TAC PASSES TACLIST($G1) { ...
IF <sortword>|(<expression>) FAILS (<lower-limit> , <upper-limit>) ...
IF <sortword>|(<expression>) FAILS <gate-array-name>(<index>) ...
eg.
causes spectra SPEC2 and SPEC3 to be decremented if sortword GAMA is outside the range defined by 100 and HLIMIT (inclusive).IF GAMA FAILS (100 , HLIMIT) { DEC SPEC2(GAMB) DEC SPEC3(GAMC) }