Of course there's also:
Select a
case 1,2,3,4 Print "A is 1,2,3 or 4"
case 5 print "A is 5"
case 6,8 Print "A is 6 or 8"
end select
Which is a lot cleaner if you have to check for a whole bunch of conditions... But for just two or so, the if (a=6 or (a=8) is probably the easiest.
Select a
case 1,2,3,4 Print "A is 1,2,3 or 4"
case 5 print "A is 5"
case 6,8 Print "A is 6 or 8"
end select
Which is a lot cleaner if you have to check for a whole bunch of conditions... But for just two or so, the if (a=6 or (a=8) is probably the easiest.