Quote Originally Posted by Christopher4187 View Post
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

Chris
Should work. If it doesn't, reverse the cases around a bit...

SELECT CASE x
CASE IS > 20
GOTO LED1
CASE IS > 0
GOTO LED2
END SELECT

Sometimes it's all about the order things go in...