Android Tutorial Comparison Operators in Select Case

@stevel05:
your tip makes code much more readable and elegant. Thanks.
 
I'll see if it also works for other values. I assume that it will execute the first case that is true and then exit.
Code: Copy
i = 7
Select True
     Case (i < 5)
          Log("<5")
     Case (i < 8)
          Log("5 <8") 'this should be executed
     Case (i < 10)
          Log("8<10")
     Case (i = 10)
          Log("=10")
End Select
 
Back
Top