Select-Other-Branch-Conditions--to-Execute-Other-Branch-Blocks
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
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
None | None | None | None | None |
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