> ## Documentation Index
> Fetch the complete documentation index at: https://docs.browseract.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Condition Node

> Creates logical branches (True/False) to direct the workflow based on page content or variables.

Overview

The Condition node performs "branch logic" within a workflow. Based on the current page state or outputs from previous nodes, it decides which subsequent path to execute, enabling intelligent workflow branching.

<img src="https://mintcdn.com/browseract/mbFUxyTJyJqN-SHr/images/Gemini_Generated_Image_pzn4dmpzn4dmpzn4.png?fit=max&auto=format&n=mbFUxyTJyJqN-SHr&q=85&s=4ffb652e4d11c478fcf7a5249cc9b09c" alt="Gemini_Generated_Image_pzn4dmpzn4dmpzn4.png" width="2752" height="1536" data-path="images/Gemini_Generated_Image_pzn4dmpzn4dmpzn4.png" />

**Use Cases**

* Checking if a user is logged in (e.g., does a "Sign out" button exist on the page?).
* Checking if there is a next page (e.g., is the "Next Page" button clickable?).
* Checking stock status (does the page display "Out of Stock" or "Sold Out"?).
* Handling pop-ups or ad overlays (checking if specific pop-up elements appear).

**Core Capabilities**

* Uses natural language to describe conditions.
* Provides default **True / False** branches, which can connect to any nodes.
* Supports multi-dimensional judgment based on visible page content, URL, variables, preceding node outputs, etc.

**Configuration Steps**

1. Add a **Condition** node.
2. Use natural language in the condition description, for example:
   * "Does the current page display the text 'Out of Stock'?"
   * "Does a 'View All Jobs' button exist?"
   * "Does the current URL contain '/checkout'?"
3. Configure the **True** branch: The chain of nodes to execute when the condition is met.
4. Configure the **False** branch: The chain of nodes to execute when the condition is not met.
5. At runtime, the system automatically evaluates the condition and follows the corresponding branch.

<img src="https://mintcdn.com/browseract/qq8WiFiqlgsNDkBX/images/PixPin_2025-12-04_14-56-17.png?fit=max&auto=format&n=qq8WiFiqlgsNDkBX&q=85&s=5ece53bdb4153425f580a403ed9cd850" alt="PixPin_2025-12-04_14-56-17.png" width="721" height="684" data-path="images/PixPin_2025-12-04_14-56-17.png" />

**Recommendations**

* Be as specific as possible when describing conditions. Avoid vague phrases like "Check the button."
* Condition nodes support nesting up to 3 levels; be mindful of branch complexity and maintainability.
* If two branches eventually perform the same behavior, both True and False branches can point to the same subsequent node.
* For very complex logic, split into multiple serial Condition nodes to implement multi-step judgment.
