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

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the Expression component

# Use the Expression component {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
Perform mathematical and logical operations with various operands and operators using
the Expression component in RPA Desktop Design Studio. The Expression component
supports multiple operators and functions for you to use.

## Before you begin

Role required: none

## About this task

You can combine Expressions with operators with each operator having a priority. The priorities of the operators are given.

1. Primary
2. Unary
3. Power
4. Multiplicative
5. Additive
6. Relational
7. Logical
{#use-general-expression__ul_zhc_dbd_tsb}

The Expression component supports multiple functions. See [Supported functions for the Expression components](https://www.servicenow.com/docs/VWiCHEuezvFwMZ_J6JxDGw "Learn about the various functions for the Expression components in RPA Desktop Design Studio.").  
You can configure the properties for the Expression component.{#use-general-expression__table_nc3_lh3_xtb__entry__2}

| Property | Description |
|-|-|
| Delay After Execution | The number of seconds to pause after running. |
| Delay Before Execution | The number of seconds to pause before running. |
| Enable Timeout | Option to set a timeout value. |
| Timeout | Number of seconds that the operation ends after if not completed. To apply this value, you must set the Enable Timeout property. |
[Table 1. Properties of the Expression component]

{#use-general-expression__table_nc3_lh3_xtb}

## Procedure

1. In the Toolbox pane, navigate to GeneralExpression.
2. Drag the Expression component to the Design surface.
3. Double-click the light-yellow colored field and enter the expression.![Edit-Expression-field.]()  
   A Data In port is dynamically added for each operand. For example, if you enter the expression X+Y, then two Data In ports are added for "X" and "Y". The Data In ports accept values for the operands.
4. To configure the input fields, see [Configure port properties](https://www.servicenow.com/docs/ED3jBpqtlHH8p~yFFmyRBQ "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
5. Connect the data and control ports of the Expression component to the corresponding ports of the other components as described in the following table.  
   {#use-general-expression__table_gtq_gq1_ntb__entry__6}

   | Port type | Port name | Data type | Purpose of connection | Default value | Mandatory? |
   |-|-|-|-|-|-|
   | Data in | The name of the port is the same as the name of the operand. For example, if X is the operand, then the port name is "X". | String | Takes the value of the operand. | No default value. | Yes |
   | Data out | Result | Object | Returns the result of the expression. | Not applicable | Not applicable |
   [Table 2. Expression component port parameters]

   {#use-general-expression__table_gtq_gq1_ntb}
6. **Optional:** To test the component, right-click the component bar and then click Run From Here.

## Expression component performs a mathematical operation between two
operands {#use-general-expression__example_sgf_2rj_h5b}

In the example, the Variable component passes the integer values for the two operands
"i" and "j" set in the Expression component. The Expression component takes the
values and finds whether the value of i\>=j. The result is passed to the Decision
component. The Decision component passes the result to the Show component. In the
example, since the value of "i" is lesser than "j", the Show component shows "False"
in a message box.

*[\>]: and then


