We Use Cookies

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with this.

See our cookie policy.

Automation Action: Select Case

Conditionally execute a one or more actions in the matching Case block.

Built-In Action

Creates a Select Case block to conditionally execute a group of actions in the matching Case block.

When you drag a Select Case action onto the Actions list you will be asked for a Value. Enter a value or a %variable% replacement.

A Select Case block will then be created.

Click a Case action to define the condition for each Case statement.

The Is can be:

  • Equal To
  • Not Equal To
  • Less Than
  • Greater Than
  • Less Then Or Equal To
  • Greater Than Or Equal To
  • Contains
  • Does Not Contain
  • Contains One Of (list of words or phrases)
  • Contains All Of (list of words or phrases)
  • Starts With
  • Ends With
  • Else

Enter a Value or %variable% replacement to compare against the Select Case Value.

If the Select Case Value matches the Value of the Case statement then the Actions in the Case block will be executed. Drag any number of actions inside the Case block to execute. Execution will then move to the End Select action.

You can drag additional Case actions to the Select Case block.

The Case Else block will be executed if no matched Case actions are found.

Each Select Case block must have at least 1 Case action and end with an End Select.

Select Case blocks can be nested - so the Case actions can include further Select Case blocks.

Contains / Does Not Contain

The Contains and Does Not Contain match types can use wildcards and are case-insensitive.

Contains One Of/Contains All Of Match Types

For the Contains One Of or Contains All Of match types you can enter a list of words or phrases. For Contains One Of the Select Case Value must contain at least one of the values. For Contains All Of it must contain all of the values. Both Contains One Of and Contains All Of use case-insensitive matching. Individual words/phrases can contain wildcards.