Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Use the Expression component

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

The Expression component supports multiple functions. See Supported functions for the Expression components.

You can configure the properties for the Expression component.

PropertyDescription
Delay After ExecutionThe number of seconds to pause after running.
Delay Before ExecutionThe number of seconds to pause before running.
Enable TimeoutOption to set a timeout value.
TimeoutNumber of seconds that the operation ends after if not completed. To apply this value, you must set the Enable Timeout property.

Procedure

  1. In the Toolbox pane, navigate to General > Expression.

  2. Drag the Expression component to the Design surface.

  3. Double-click the light-yellow colored field and enter the expression.

Image omitted: expression-field-edit.png
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.
  1. To configure the input fields, see Configure port properties.

  2. Connect the data and control ports of the Expression component to the corresponding ports of the other components as described in the following table.

    Port typePort nameData typePurpose of connectionDefault valueMandatory?
    Data inThe 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".StringTakes the value of the operand.No default value.Yes
    Data outResultObjectReturns the result of the expression.Not applicableNot applicable
  3. To test the component, right-click the component bar and then click Run From Here.

Expression component performs a mathematical operation between two operands

Image omitted: Expression\_False.PNG
Mathematical operation between two operands.

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.

Parent Topic:General