Skip to main content
The Bool Condition node creates branching logic in your workflow based on conditions. The workflow follows the true or false edge depending on the evaluation result.

Parameters

Comparison Operators

For STATIC execution, use these operators:

Examples

Basic Comparison

Check if a value equals a specific string:

JSONata Expression

Use complex logic with JSONata:

LLM_VISION Condition

Use AI to evaluate a visual condition based on a screenshot:

PROMPT Condition

Use AI to make a decision based on context data (no screenshot):

Clear Cookies on False

Reset session if condition fails. Relevant for login flows to remove stale browser state:

Loop with an Iteration Cap

When a true or false edge loops back to an earlier node (retry, while, or pagination loops), use max_iterations to bound how many times the condition may run before the workflow gives up:

Notes

  • Use STATIC execution with comparison operators for simple, fast evaluations
  • Use LLM_VISION when you need to evaluate visual conditions based on a screenshot
  • Use PROMPT when you need AI reasoning on context data without requiring a screenshot
  • max_iterations only matters when one of the condition’s edges loops back to an earlier node. It caps how many times the condition executes across the whole run; when the cap is reached the run fails with STUCK_LOOP-E0001. Looping conditions default to 100 if you don’t set it — raise it when the loop can legitimately run longer, or set 0 to disable the cap entirely. Forward-only if/else conditions ignore it.