I have the following select case where I want to do some checks on what a string contains and call some functions for each case. But it seems that if multiple conditions are true it considers only the first condition. The problem is I have about 113 different cases.
Do I have to use an if statement for each case?
Select Case True
Case command.ToUpper.Contains(" S:")
'Do something
Case command.ToUpper.Contains(" C:")
'Do something
Case command.ToUpper.Contains(" *S")
'Do something
Case command.ToUpper.Contains(" *C")
'Do something
Case command.ToUpper.Contains(" CC")
'Do something
Case command.ToUpper.Contains(" SS")
End Select