Skip to main content

Logic Operations

Logic operations allow you to combine multiple conditions to create more complex decision-making rules.

And / Or

The and / or block combines two boolean values.

  • AND: Returns true only if both inputs are true.
    • Example: Image A found AND Image B found.
  • OR: Returns true if at least one of the inputs is true.
    • Example: Image A found OR Image B found.

Not

The not block inverts a boolean value.

  • Returns true if the input is false.
  • Returns false if the input is true.
  • Usage: "Repeat while not image found" (Wait until image appears).

Example

Checking if we should click a button only if the screen is ready AND the button is visible: