Skip to main content
Version: v6.7.0

Case Else

Command Description​

When all preset Case branches are unable to satisfy analysing conditions, you can use the Case Else branch to represent other situations

Command Prototype​

Case Else 


Parameter Description​

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone
TracePrint("--------------------------------------Conditional branch--------- ----------------------------------") 
//--------------------------------------------------------------------------------------------
//[Remarks] It can only be used in combination with the Select Case statement. The logic of the Case branch when all the preset Case branches cannot match the judgment conditions
a = 4
Select Case a + 1
Case 1
TracePrint("This is Case 1")
Case 2
TracePrint("This is Case 2")
Case 3
TracePrint("This is Case 3")
Case Else
TracePrint("This is Case Else")
End Select