Otherwise
Verb: otherwise
Defines which statements to execute when the conditions of the Case, When, and Then commands are not met.
Syntax
otherwise
Example
The Otherwise command is used to execute a block of code after the Case command gets a result that does not satisfy the condition.
defVar --name verifiedCase --type String --value Name
defVar --name leftOperand --type String --value leftOperandValue
defVar --name rightOperand --type String --value rightOperandValue
case --name "${verifiedCase}" --switches "CaseSwitchesAll"
when --left "${leftOperand}" --operator "Equal_To" --right "${rightOperand}"
then
logMessage --message "True verified condition." --type "Info"
otherwise
logMessage --message "False verified condition." --type "Info"
endCase
Remarks
To use Otherwise, a condition must first be defined in the Case command.