Use the Decision component

  • Release version: Zurich
  • Updated July 31, 2025
  • 1 minute to read
  • Automate the decision-making process by using the Decision component in RPA Desktop Design Studio.

    Watch this video to learn how to use the Decision component.

    Before you begin

    Role required: none

    About this task

    You can specify a conditional expression in the component. If the expression contains any parameters, they appear as input ports. If the expression is correct based on the inputs provided, then the True Output Port takes control. Else, the False Output port takes control and executes the automation.

    For defining conditions, the Decision component provides many functions, operators, and expressions. For more information, see Functions, data types, and operators.

    To configure the properties for the Decision component, see Properties of the Conditions components.

    Procedure

    1. In the Toolbox pane, navigate to Conditions > Decision.
    2. Drag the Decision component to the Design surface.
    3. Double-click the field under the DECISION component bar.Enable the Decision component field.
    4. Enter the condition in the field, such as a=5 where "a" is the parameter.
      A Data In port is dynamically created.
    5. To enter a value in the Data In field, see Configure port properties.
    6. Connect the data and control ports of the Decision component to the corresponding ports of the other components.
      Port type Port name Data type Purpose of connection Default Value
      Data In The name is the same as the name of the parameter. For example, in the condition a=5, "a" will be the port name. Object Takes the input or data for the parameters that are created in the condition. None
    7. Optional: To test the component, right-click the component bar and then click Run From Here.

    Accept an input and match with a condition

    In the DECISION component, a conditional expression "i=10" is set. Since "i" is the parameter, an input port is dynamically created in the component. The Variable (Create and use a variable in RPA Desktop Design Studio) component provides the input "5" to the Decision component which is False. Hence, the False Output port takes control and the Show (Use the Show component) component shows the message "False." Use of the Decision component