This would also work. The Select will stop at the first statement that evaluates to True. I use this method a lot to prioritize events.
B4X:
Select True
Case X<10
'Do something
Case X<20
'Do something else
Case Else
'Do something completely different
End Select
You can also mix types as long as they evaluate to True or False
B4X:
Select True
Case X<10
'Do something
Case strAnswer="Yes"
'Do something
Case X<20
'Do something else
Case Else
'Do something completely different
End Select
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.