End Case

Ends a command block started by the Case (case) command.

Command availability: IBM RPA SaaS and IBM RPA on premises

Dependencies

Start a block of commands with the Case (case), When (when) and Then (then) commands.

Script syntax

IBM RPA's proprietary script language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.

endCase

Example

This example demonstrates how to start a block of commands with Case.

case --name Case --switches "Any"
    when --left 1 --operator "Equal_To" --right 1
then
    logMessage --message "Block Executed" --type "Info"
endCase
logMessage --message "End Case" --type "Info"
// Block Executed
// End Case