To further the discussion, because I have never used select case before, can you do something like this:

SELECT CASE x

CASE IS < 21 led1

CASE IS < 41 led2

END SELECT

I am used to something like this

If x=1 then
goto led1
else
goto led2
endif


Also, an OT question. How do you guys get the code to display in blue?

Thanks,

Chris