---
title: "Condition"
description: "Branch a workflow with a query, a switch, or a single-value check."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/condition"
---
# Condition

> Branch a workflow with a query, a switch, or a single-value check.

**Condition** blocks sit in the builder palette under **Basic → Condition**. They evaluate the run context and continue on a **true**, **false**, case, or default outlet. Shared graph rules are on [Workflows](https://docs.vettero.com/build/workflows); each page covers **Config** for that type.

<table>
<thead>
  <tr>
    <th>
      Use
    </th>
    
    <th>
      Block
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Several comparisons with AND/OR
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/condition">
        Condition
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Many mutually exclusive paths
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/switch">
        Switch
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      One variable, missing or null
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-null">
        Is Null
      </a>
      
       / <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-not-null">
        Is Not Null
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      One variable, defined vs unset
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/exists">
        Exists
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Empty text, list, or object
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-empty">
        Is Empty
      </a>
      
       / <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-not-empty">
        Is Not Empty
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      Yes/no style values
    </td>
    
    <td>
      <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-truthy">
        Is Truthy
      </a>
      
       / <a href="https://docs.vettero.com/build/workflows/blocks/condition/is-falsy">
        Is Falsy
      </a>
    </td>
  </tr>
</tbody>
</table>

<searchable-card-grid :items="[{"title":"Condition","description":"Evaluate AND/OR comparisons on context variables and route to true or false.","icon":"i-lucide-git-branch","to":"/build/workflows/blocks/condition/condition","keywords":"condition if else true false query and or branch"},{"title":"Switch","description":"Evaluate branches in order and take the first match, or the default outlet.","icon":"i-lucide-git-fork","to":"/build/workflows/blocks/condition/switch","keywords":"switch case default first match branches"},{"title":"Is Null","description":"Route true when the variable is missing or null.","icon":"i-lucide-circle","to":"/build/workflows/blocks/condition/is-null","keywords":"null undefined missing"},{"title":"Is Not Null","description":"Route true when the variable has a value (not missing or null).","icon":"i-lucide-circle-check","to":"/build/workflows/blocks/condition/is-not-null","keywords":"not null defined value"},{"title":"Exists","description":"Route true when the variable is defined (null still counts).","icon":"i-lucide-check","to":"/build/workflows/blocks/condition/exists","keywords":"exists defined undefined"},{"title":"Is Empty","description":"Route true when the value is missing, empty text, an empty list, or an empty object.","icon":"i-lucide-package-open","to":"/build/workflows/blocks/condition/is-empty","keywords":"empty string array object"},{"title":"Is Not Empty","description":"Route true when the value is not empty.","icon":"i-lucide-package","to":"/build/workflows/blocks/condition/is-not-empty","keywords":"not empty"},{"title":"Is Truthy","description":"Route true when the value counts as yes (true, non-zero, non-empty text).","icon":"i-lucide-thumbs-up","to":"/build/workflows/blocks/condition/is-truthy","keywords":"truthy true yes"},{"title":"Is Falsy","description":"Route true when the value counts as no (false, 0, empty text, or missing).","icon":"i-lucide-thumbs-down","to":"/build/workflows/blocks/condition/is-falsy","keywords":"falsy false no"}]" empty="No condition blocks match that search." placeholder="Search condition blocks…">



</searchable-card-grid>

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
