Skip to main content

Otherwise,-Perform-Subsequent-Operations

Command Description

If the expression is true, statements in "Yes Block" would be executed, otherwise, statemtns in "No Block" would be executed. ElseIf statements can be used multiple times with more conditional brachings, and ElseIf and Else statements are optional

Command Prototype

Else 


Parameter Description

ParameterRequiredTypeDefaultDescription
NoneNoneNoneNoneNone
TracePrint("--------------------------------------Conditional branch--------- ----------------------------------") 
//-------------------------------------------------------------------------------
//[Remarks] If the expression expression is true, execute the Yes Block block, otherwise execute the No Block block. ElseIf statements can appear multiple times, corresponding to more conditional branches. ElseIf and Else statements can be omitted if they are not needed, and the corresponding statement blocks do not need to be written.
TracePrint("Let the variable a be UiBot, the conditional branch judges whether a is equal to UiBot, if it is, print yes, otherwise print no as: ")
a = "UiBot"
If a = "UiBot"
TracePrint "yes"
Else
TracePrint "no"
End If