---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the Switch component

# Use the Switch component {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Find the exact match of a value among multiple values as part of an automation Workflow by using the Switch component in RPA Desktop Design Studio.
Watch this video to learn how to use the Switch component.

## Before you begin

Role required: none

## About this task

The Switch component enables you to set multiple values that are matched with the
value that it takes from another component or method. It switches between values
until it finds an exact match. If no match is found, it enables you to execute an
alternate action.

The Switch component can work with other components or methods to execute an
automation Workflow.

You can configure the properties for the Switch component. For more information on
these properties, see [Properties of the Conditions components](https://www.servicenow.com/docs/_GhtoGGrMnwypMSD5t6NuA "Learn about the properties for the Conditions components in RPA Desktop Design Studio.").

## Procedure

1. In the Toolbox pane, navigate to ConditionsSwitch.
2. Drag the Switch component to the Design surface.
3. To set the values for matching, do the following actions:
   1. Click the add value icon (![Add value icon.]()).
   2. **Optional:** Repeat Step 3 to add as many fields for the values as you need.  
      Data In ports are dynamically created to accept values.
   3. To configure the input method to the fields, see [Configure port properties](https://www.servicenow.com/docs/d92L75lHSFmmidzeOPPgTw "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
   {#use-conditions-switch__substeps_sjh_zcl_jsb}
4. Connect the data and control ports of the Switch component to the corresponding ports of the other components as described in the following table.  
   {#use-conditions-switch__table_p3w_n1f_rrb__entry__4}

   | Port type | Port name | Data type | Purpose of connection |
   |-|-|-|-|
   | Data In | Comparison Data | Object | Takes the value that is matched with the values set up in the component. |
   | Data In | Value | String | Takes the value that is matched with the value that is passed through the Comparison Data port. |
   | Data Out | ELSE | Not applicable | If there is no match, the component passes the control to the next component. |
   [ ]

   {#use-conditions-switch__table_p3w_n1f_rrb}
5. **Optional:** To test the component, under the DESIGN tab, click Run.

*[\>]: and then


