
Originally Posted by
sayzer
<font color="#000080"><b>CASE IS </b></font>> <font color="#FF0000">5 </font><font color="#000080"><b>AND IS </b></font>< <font color="#FF0000">20
</font>
That's what I thought too. 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. 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."

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
Bookmarks