If a condition is true, run steps

The If condition step runs the sub-steps inside it only when a condition is true, and the sub-steps under its Else branch when it is not. Pair it with a scraper: once the scraper has extracted data, this step checks it for a value and runs the matching branch. To jump to another step instead of running sub-steps, use the Conditionally jump to another step step.

You can use this step to:

  • Run steps based on a value found on a web page by scraping it first
  • Enter data into a form depending on a condition
  • Trigger another automation depending on a value found in a Google Sheet

The If condition step with its Data to check, Condition to check and Reverse condition settings on three lines, an Add sub-step button, an Else branch with its own Add sub-step button, and the End If line

How to configure the If condition step


The step's settings sit on three lines at its top; click each to set it.

Data to check

Click Not set and select the data to check for values.

Condition to check

Choose what to check the data for:

  • Words: enter a list of words separated by commas, or insert data holding one word per row. Leave it blank to match anything. Choose Any word to pass when any of the words is present, or All words to require every one. Tick Match only complete word to match whole words only: the characters a-z, A-Z, 0-9 and _ are part of a word, everything else is a word boundary.
  • Numbers: enter a number and choose Greater than or equal to, Equal to or Less than or equal to.
  • JS == true: enter a JavaScript expression; the condition passes when it evaluates to true.

Reverse condition

Run steps if condition is true is the default. Switch it to run the sub-steps when the condition fails instead.

Add sub-step

Click Add sub-step under the condition to add the steps that run when it passes, and under Else to add the steps that run when it does not. The step ends at the End If line.

Additional information

You can nest this step inside loops or other If condition steps.

Guides that use this step