Quote Originally Posted by sayzer
Why not using the statement below?

IF PulseLength > 165 AND PulseLength < 176 THEN
OutValue=0
ELSE
IF PulseLength > 184 OR PulseLength < 192 THEN OutValue=1
ENDIF

----------------------
Because the above compiles almost 2.5 times longer!

Ioannis