IF <sortwordx>|(<expressionx>) GATEDBY <1D-gate-expr> ...
where the spectra SPEC1 and SUMSPEC are incremented if sortword GAMTOT passes any of the 1D gates defined in the gate-map GLIST1. If no gates are passed then command processing is terminated for that event (EVENTEND command).IF GAMTOT GATEDBY GLIST1 { INC SPEC1(GAMTOT) INC SUMSPEC(SUMEN) } ELSE EVENTEND
IF <sortwordx>|(<expressionx>) <sortwordy>|(<expressiony>) GATEDBY <2D-gate-expr> ...
In the example below if EDELTE (x-coordinate) and SUMEN (y-coordinate) pass any of the gates defined in the gate-map GREC1 then the commands within the first set of braces will be executed, otherwise if they pass any of the gates defined in GREC2 then the commands within the second set of braces will be obeyed:
IF EDELTE SUMEN GATEDBY GREC1 { INC MASS1(GAMTOT) SELECT(GATE) <commands dependent upon which gate passed> } ELSE { IF EDELTE SUMEN GATEDBY GREC2 INC MASS2(GAMTOT) }