# Filter

The **Filter Node** acts as a smart filter within your workflow, letting you control which records should proceed to the next step based on custom logic and property values.

With this node, you can add logic like:\
\&#xNAN;*"Only continue if Company Country is US."*

***

### When to Use It

Use the Filter node when you want to:

* Run different automations for different segments (e.g., US vs. non-US accounts)
* Filter out records that don’t meet your criteria before taking an action (like syncing, enrolling, or enriching)
* Build branching, multi-path workflows based on any field or attribute

***

### Configuration Overview

Here’s how the Filter Node works:

The **Filter Node** allows you to apply conditional logic to control which records continue in your workflow. You can filter by account or contact properties, including both standard and AI-enriched fields.

#### Configuration Options

1. **Filter Type**
   * **If** → Define a condition that must be true for records to continue.
   * **Else** → Define a fallback path for records that do not meet the condition.

     <figure><img src="/files/TuCDQ7NjtdexrEUHsxo6" alt=""><figcaption></figcaption></figure>
2. **Filter Scope**
   * **Account** → Apply conditions on account-level properties.
   * **Contact** → Apply conditions on individual contact-level properties.
3. **Define Conditions**
   * **Select a Property** → Choose the account or contact property you want to filter on.
   * **Choose an Operator** → Options include `is`, `is not`, `contains`, `greater than`, `less than`, etc.
   * **Set a Value** → Enter the value or criteria that must be matched for records to pass through.

#### Example

* Filter:
  * **Company Country is US**
* Workflow Behavior:
  * ✅ Records with **Company Country = US** will continue through this path.
  * ❌ Records from other countries will be excluded (or follow the Else path if defined).

***

<figure><img src="/files/VOdDzXva93cJdfu2Jjeh" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hockeystack.com/account-intelligence/workflows/nodes/logic/condition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
