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

# Filter

> Stop users from continuing through the workflow if they don't meet specific criteria

<iframe src="https://app.flywheel.cx/doc-comp-previews/workflow-node-preview?type=filter" title="Workflow Node Preview" width="100%" height="250px" className="border dark:border-[#1C1C20]  rounded-xl" />

## How Filter Works

Stop users from continuing through the workflow if they don't meet specific criteria. Users who don't match the filter condition are removed from the workflow, while those who match continue to the next action.

## Configuration

<Columns cols={2}>
  <Card title="Inputs">
    <ParamField path="Condition" type="object" required>
      Define the criteria that users must meet to continue through the workflow. Uses the same condition system as If/Else actions but only continues on true results.
    </ParamField>
  </Card>

  <Card>
    <iframe src="https://app.flywheel.cx/doc-comp-previews/workflow-config-preview?type=filter" title="Workflow Config Preview" width="100%" height="400px" className="" />
  </Card>
</Columns>

<Card title="Outputs">
  <ParamField path="condition_result" type="boolean" required>
    Whether the condition was met. Only users with `true` results continue through the workflow.
  </ParamField>
</Card>

## Use Cases

**Active Users Only**

```
Condition: user.last_login_date > 30 days ago
Result: Only recently active users continue through workflow
```

**Subscription Status Filter**

```
Condition: user.subscription_status = "active"
Result: Only active subscribers receive promotional content
```

**High-Value Customer Targeting**

```
Condition: user.ltv > 1000
Result: Only high-value customers receive premium offers
```

**Geographic Filtering**

```
Condition: user.country = "United States"
Result: Only US-based users receive region-specific content
```

## Best Practices

**Clear Filter Criteria**

* Define specific, measurable conditions
* Use precise comparison operators
* Test conditions with sample data

**Consider Workflow Impact**

* Plan for users who don't pass the filter
* Monitor filter effectiveness and conversion rates
* Adjust criteria based on business goals

**Performance Optimization**

* Use efficient conditions that can be evaluated quickly
* Avoid overly complex nested conditions
* Consider caching frequently accessed user properties
