Select the case

Blitz3D Forums/Blitz3D Beginners Area/Select the case

I don't see how this differs from If..ElseIf..Else..EndIf! You can add extra comparisons easily and you can order them. In fact, you're supposed to order your If's in the order of likelihood anyway, for the sake of speed.

As for readability, maybe you have a point, but it's not that significant in my opinion.

If a>1 and a<10 Then
    ...
Else If a>9 Then
    ...
Else
    ...
EndIf

versus

Select True
    Case a>1 And a<10
        ....
    Case a>9
        ....
    Default
        ....
End Select

Each to their own, I guess.