Skip to main content

One post tagged with "how to use boolean?"

View All Tags

How to use Boolean nodes?

· 3 min read
Cansel Kahraman
RPA Developer

Boolean nodes offer a dynamic approach to decision-making within your Robomotion workspace. A boolean is a data type that represents a binary condition, typically denoted as true or false. In Robomotion, boolean variables and expressions play a crucial role in controlling the flow of a process by determining which actions to take based on whether a condition is true or false. These nodes enable you to create logic-driven processes, running your tasks and improving the precision of your automation.

For example, you might use boolean variables in Robomotion to control loops, make decisions in If statements, or set conditions for the execution of specific activities.

In this blog post, we will explore the ins and outs of using Boolean nodes to perform conditional operations in your flow.

How to Setup?

To begin, Login to your Robomotion workspace. If you haven't registered yet, you can create your workspace from the provided link. Once you have access to your workspace, you can create a new flow or open an existing one where you intend to utilize Boolean nodes. Make sure you have the 'Boolean' package installed in your workspace.

About Boolean Package The Boolean package consists of 3 nodes: the 'Assign' node, the 'Operation' node, and the 'To String' node.

About the ‘To String’ node? If you have a variable of the number type in your workflow and need to convert it to a string, the 'To String' node from the 'Number' package comes to the rescue. This handy node allows you to effortlessly perform the conversion, transforming your numerical data into a string representation.

How to use the ‘ Assign’ node and ‘Operation’ node?

  • To use the 'Assign' node and 'Operation' node, you need to download the 'Boolean' package.

  • Download the 'Boolean' package under the 'Packages' menu.

Menu of Packages

Packages download page

About 'Assign' Node Inputs

  • The value must be entered in the Value data box.

  • The output of the 'Assign' node is a variable of string type.

Details of ‘Assign’ Node Inputs

About 'Operation' Node Inputs

  • The output value of the 'Assign' node must be entered in the 'Values data' boxes.

  • The output of the 'Operation' node is a variable of boolean type.

Details of ‘Operation’ Node Inputs

Boolean Operation Type

Flow Steps

  1. The 'Inject' node initializes the flow.
  2. The 'Assign' node is utilized for assigning values.
  3. The 'Operation' node is employed to compare string values.
  4. Stop the flow using the 'Stop' node.

Flow

Here you can access the complete flow by clicking on the following link: https://casestudies.robomotion.io/designer/shared/2sSrFD4euyAnXfwgTumwEo