Select Syntext

BlitzPlus Forums/BlitzPlus Beginners Area/Select Syntext

Moore(Posted 2006) [#1]
Ok;

Select x
Case 10 Or 9 ; <------------
Print "Hello world"
End Select

Why wont this work with the Or statement how do I make it work or is it not possible?


Moore(Posted 2006) [#2]
Ah got it

Select x
Case 10, 9
Print "Hello world"
End Select

just had to use a comma


Adam Novagen(Posted 2006) [#3]
Cool, didn't know that multiple choices could work in a Select...Case loop - <=|


El Neil(Posted 2006) [#4]
me neither. i thought you would have to use "select true" with "case x = 9 or x = 10:"

something new every day.