Quote Originally Posted by sayzer View Post
<font color="#000080"><b>CASE IS </b></font>&gt; <font color="#FF0000">5 </font><font color="#000080"><b>AND IS </b></font>&lt; <font color="#FF0000">20
</font>
That's what I thought too. &nbsp; But when I tried it in a test program, it didn't work.
It's not in the manual, even though it compiles without warnings. &nbsp; So I wasn't sure if it was valid.

I asked meLabs, and they said ...
"SELECT CASE isn't capable of logic in the cases. Never has been."


Quote Originally Posted by kenif
Is there a workaround, short of building a long CASE staircase?
I quess you'll need to use IF statements instead of SELECT CASE.
Code:
IF (A >= 5) AND (A <= 20) THEN
    ; something
ELSE
    IF (A > 20) AND (A <= 40) THEN
         ; something else
    ENDIF
ENDIF