--- title: Use the Switch component description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/use-conditions-switch.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Conditions, Automation components, RPA Desktop Design Studio, Robotic Process Automation \(RPA\) Hub, Workflow Data Fabric] --- # Use the Switch component 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. \[Omitted video\] Description: 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/conditions-properties.md). ## Procedure 1. In the Toolbox pane, navigate to **Conditions** > **Switch**. 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 \(\[Omitted image "add-image-icon.png"\] Alt text: Add value icon.\). 2. Repeat Step 3 to add as many fields for the values as you need. Data In ports are dynamically created to accept values.\[Omitted image "switch-illustration.png"\] Alt text: Switch component example. 3. To configure the input method to the fields, see [Configure port properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-input-port-properties.md). 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. |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.| 5. To test the component, under the **DESIGN** tab, click **Run**. **Parent Topic:**[Conditions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/conditions-components.md)