---
sourceDocument: Australia Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/integrate-applications

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the Compare component

# Use the Compare component {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Compare two string objects that are based on their ASCII values by using the Compare
component in RPA Desktop Design Studio.

## Before you begin

Role required: none

## About this task

Compare method is used to compare given text with provided options. If option is matched, it opens the matching control out port.

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

## Procedure

1. In the Toolbox pane, navigate to UtilitiesString Utilities.
2. Drag the Compare component to the Design surface.
3. In the Compare component, double click the title bar to launch the Configuration editor.
4. Select the Add icon (![Plus icon.]()) to add the string options from the Comparison Options drop-down list.  
   For example, select the following options.Figure 1. Comparison options window
5. Connect the data and control ports of the Compare component to the corresponding ports of the other components as described in the following table.  
   {#use-stringutil-compare__table_jnw_jn1_krb__entry__4}

   | Name | Purpose of connection | Port type | Data type |
   |-|-|-|-|
   | Text | Provide text that must be compared with multiple control out ports based on the comparison type. For example, if you provide <kbd class="ph userinput">hello welcome</kbd> as the comparison text, the component compares option 0 and option 1. Since Option 1 starts with hello, it matches with the text provided. Connect this to a MessageBox component to view the output. Figure 2. Compare component | Data In | String |
   [Table 1. Compare component parameters]

   {#use-stringutil-compare__table_jnw_jn1_krb}
6. **Optional:** To test the component, under the DESIGN tab, click Run.

*[\>]: and then


