Prev Up Next
Go backward to Validation test operator (VALID)
Go up to If...else...command (single sortword environment)
Go forward to Filtering operators (PASSES,FAILS)

Comparison operators (EQ,NE,GE,LE,GT,LT)


IF <sortword1>|(<expression1>) EQ|NE|GE|LE|GT|LT <sortword2>|<constant>|(<expression2>) ...

where
EQ denotes "is equal to"
NE denotes "is not equal to"
GE denotes "is greater than or equal to"
LE denotes "is less than or equal to"
GT denotes "is greater than"
LT denotes "is less than"
and <constant> may be an integer or real constant.


The first <sortword> or <expression> is compared with the second according to the operator specified, eg.
IF GAMA GT THRESHOLD {
    INC SPEC1(GAMA)
    INC SPEC2(TAC)
    }
ELSE  EVENTEND
In the above example, the spectrum increments are performed if the value of GAMA is greater than that of THRESHOLD. Otherwise event processing is terminated for that event (EVENTEND command).
support@ns.ph.liv.ac.uk

Prev Up Next