---
schema_version: "1"
id: 2e6ba645c6977070c6dd167457a6a173d203150af4ffc5995b83aef4077944b9
title: Select Case
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/rpa-builder/latest/toolbox-flow-control-select-case.md
canonical_url: https://docs.mulesoft.com/rpa-builder/latest/toolbox-flow-control-select-case
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 85c1b0d5c766d2732fe82bdff09a23d77f888750d02a067a87c57822e023c9bf
description: MuleSoft Documentation Site
release: "6.7"
latest: true
---
---
product: RPA Builder
version: 6.7
is-latest-version: true
---

# Select Case

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

The _Select Case_ action step makes it possible to match the contents of a variable against certain
predefined cases. For example, you can search the content of a text variable for specific
information and specify different action steps to be executed depending on what is found. The
“DoElse” component is always present. This is used to provide a default action for cases that have
not been specified.

## Properties

**Misc**

- **CaseValue** Enter the comparison value for the selected case query. This is the value that will
  be compared with a variable or that will be searched for.

- **Text Affinity** Value for the textual similarity in a fuzzy search, expressed as a percentage. A
  value of 0% denotes no similarity while a value of 100% means identical. The default value is 50%.

- **CompareValue String**

- **Compare Value Int** Integer

- **Compare Value Bool**

- **Compare Value Float**

Other properties that are the same in all action steps are described in section **Common
Properties**. For reasons of clarity they are not shown here.

## Wizard

- **Type** One of the following variable types:

  - **Integer** Positive or negative integer

  - **Alphanumeric** Characters that are either letters or numeric digits, or both (text)

  - **Boolean** Boolean value (True/False)

  - **Float** Positive or negative floating-point number

If you have already defined cases and then change the type, a warning will be shown informing you
that all the cases in _Select Case_ will be lost. This is because cases in a _Select Case_ are
generated based on the previously selected data type and it is not possible to simply convert the
type of existing cases without further consideration.

- **Cases** You can create one or more cases depending on which data type you have selected above.
  After you have created a case, you can modify it.

## Data Types and Comparison Options

<table><colgroup><col> <col></colgroup><thead><tr><th><strong>File type</strong></th><th><strong>Comparison options</strong></th></tr></thead><tbody><tr><td><p>Integer (positive or negative whole number)</p></td><td><div><div><p>≠ variable must not be a match</p></div><div><p>&lt; variable must be less than Value</p></div><div><p>&gt; variable must be greater than Value</p></div><div><p>≤ variable must be less than or equal to Value</p></div><div><p>≥ variable must be greater than or equal to Value</p></div></div></td></tr><tr><td><p>Alphanumeric (text)</p></td><td><div><div><p><strong>Full match</strong>: Value found must match exactly</p></div><div><p><strong>Substring</strong>: Part of the text in Value must match</p></div><div><p><strong>Regex comparison</strong>: Search for matches for the regular expression entered as the Value. More information about <em>Regular Expressions</em> is provided in the section on <strong>Using Regular Expressions</strong>.</p></div><div><p><strong>Fuzzy</strong>: Search for text similar to that in Value Adjust the level of similarity, expressed as a percentage, using the slider under “Text Affinity”. The default value is 50%. A higher value means that fewer matches will be found.</p></div></div></td></tr><tr><td><p>Boolean (True or False)</p></td><td><div><div><p>For Boolean there is only one case because this is sufficient in combination with “DoElse” to cover the two possibilities of True and False.</p></div><div><p><strong>False</strong>: Value in evaluated variable must be False.</p></div><div><p><strong>True</strong>: Value in evaluate variable must be True.</p></div></div></td></tr><tr><td><p>Float (positive or negative floating-point number)</p></td><td><div><div><p>≠ variable must not be a match</p></div><div><p>&lt; variable must be less than Value</p></div><div><p>&gt; variable must be greater than Value</p></div><div><p>≤ variable must be less than or equal to Value</p></div><div><p>≥ variable must be greater than or equal to Value</p></div></div></td></tr></tbody></table>
