B4R Question Select Case

KiloBravo

Active Member
Licensed User
Can you use a Select Case Statement like this ? I assume not since it doesn't work but it does if I use If Then statements.

B4X:
Decay_Time = Micros - Init_Time
        Select Case Decay_Time
        Case Decay_Time = 0                  
            Log("Decay Time 0 Error")
        Case Decay_Time < 1000    
            Log("Decay Time less than 1000")
        Case Decay_Time > 5000 
            Log("Decay Time greater than 5000")
        End Select
 
Top