Skip to content

Condition Builder

The Condition Builder allows you to construct conditional statements within your workflow. It can be used to control the flow by utilizing the Condition or Conditional Loop nodes. You can add a condition node by clicking the Add Condition button.

Change Condition Name

You can change the name of a condition to better understand what it is processing.

Prefix example

Condition Type

In addition to comparing a single condition, you can add multiple conditions in the following forms:

AND

All specified conditions must be satisfied for the node connected to the next output path to execute.

To add conditions to be checked together, you click the AND button, creating a branch condition that connects to the previous condition as follows:

quick start

quick start

OR

At least one of the specified conditions must be satisfied for the node connected to the next output path to execute.

To add conditions to be checked independently, you click the OR button, creating a branch condition that connects to the previous condition as follows:

quick start

quick start

Comparison Data Type

Value

For the value, you want to compare, you can write an expression in the text field.

  • Value: Common value types such as text, numbers, etc.
    • Value Prefix: This prefix is a convention to indicate the data type of a value. It can be used to convert a value to the corresponding data type. For example, the string:: prefix can convert a value to a string, and number:: can convert a value to a number. You can add the following prefixes:
      • string::: Converts the value to a string.
      • json::: Converts the value to JSON.
      • number::: Converts the value to a number.
      • boolean::: Converts the value to a boolean.

Prefix example

  • Code: A JavaScript expression.

Prefix example

  • Data Exists: Checks if process data (variables, tables, etc.) exists.

Prefix example

Element

Use a selector to retrieve the CSS selector or XPath of an element.

Element Text

value

element text

element attribute value

Element Exists

  • Check if an element exists via its CSS selector or XPath.

Prefix example

Element Not Exists

  • Check if an element does not exist via its CSS selector or XPath.

Prefix example

Element Visible

  • Check if an element is visible via its CSS selector or XPath.

Prefix example

Element Visible in Screen

  • Check if an element is visible on screen via its CSS selector or XPath.

Prefix example

Element Hidden in Screen

  • Check if an element is not visible on screen via its CSS selector or XPath.

Prefix example

Element Attribute Value

  • Compare an element's attribute value with value, element text, or element attribute value.

value

element-text

element-attribute

Comparison Type

Basic

  • Equal: Compares if the two sides are equal, distinguishing between uppercase and lowercase. For example, An is not equal to an.
  • Equal (case insensitive): Compares without distinguishing between uppercase and lowercase. For example, An is equal to an.
  • Not Equal: Compares if the two sides are different.

Number

  • Greater Than: Compares if the left side is greater than the right side.
  • Greater Than or Equal: Compares if the left side is greater than or equal to the right side.
  • Less Than: Compares if the left side is less than the right side.
  • Less Than or Equal: Compares if the left side is less than or equal to the right side.

Text

  • Contains: Checks if the left side (case-sensitive) contains the text on the right side. For example, google.com is not contained in goOgle.com/abc.
  • Contains (case insensitive): Checks if the left side (case-insensitive) contains the text on the right side. For example, goOgle.com is contained in goOgle.com/abc.
  • Not Contains: Checks if the left side (case-sensitive) does not contain the text on the right side. For example, google.com is not contained in goOgle.com/abc.
  • Not Contains (case insensitive): Checks if the left side (case-insensitive) does not contain the text on the right side. For example, google.com is not contained in goOgle2.com/abc.
  • Starts With: Checks if the left side (case-sensitive) starts with the text on the right side. For example, googleMe.com starts with google.
  • Ends With: Checks if the left side (case-sensitive) ends with the text on the right side. For example, googleMe.com ends with com.
  • Match with RegEx: Checks if the left side (case-sensitive) matches the RegEx pattern on the right side. For example, 123456 matches the RegEx \b[0-9]{6}\b.

Boolean

  • Is Truthy: The input value, when converted to a boolean, is true. For example, abc is a Truthy value.
  • Is Falsy: The input value, when converted to a boolean, is false. For example, number::0 is a Falsy value.

Note

To distinguish between Truthy and Falsy values, refer to this resource.