# Stop a run with a filter

Let your automation quietly skip the events it shouldn't act on, without marking them as failures.

Source: https://support.rework.com/article/stop-a-run-with-a-filter

A trigger usually fires more often than you want to act. Every form submission arrives, including the empty ones. Every record changes, including the ones that don't matter. **Only continue if** is the step that decides whether this particular run is worth continuing, and quietly stops it when it isn't.

## Step 1: Add the step

- Click the **+** on the line where the decision belongs, usually right after the trigger.
  
- Search for **Only continue if** and pick it. You'll find it under **Flow controls** as well.
  

## Step 2: Write the condition

Open the step and build the rule:

- Pick the field to test under **Where**. The list holds everything the steps above produced, for example the fields that arrived with the webhook.
  
- Pick the operator, for example **Is not empty**, and type a value when the operator needs one.
  
- Click **Add condition** for another rule in the same group, or **Add condition group** to combine groups with **and** / **or**.
  

![The Only continue if step with a condition on the email field](https://storage.googleapis.com/reworkv3-public/success/260923/la2KSTwMu6NH6qMIJn7jUitS5aiiY66Z7dG3TcBqZrpp0y0BNMLcK8wy3Bpg7Cih/img.Kcrud9LGBWO4rWyshHORSjClFYIPjaq8Gjzm1QNvbO5lUnDl6ZiVgPT9l9RgoQXc.png)

Use **Test step** to check the rule against the latest sample before you rely on it. See [Test a step before you publish](https://support.rework.com/article/test-a-step-before-you-publish).

## Step 3: Understand what happens when it doesn't pass

This is the part worth knowing: a filter that doesn't pass is not a failure. 💡

- The run stops at the filter, and the steps below it never run.
  
- The run is still recorded as **Completed**, and its filter step shows **Success** with `passed: false` in its output.
  

That keeps your history honest: the only runs marked **Partially failed** are the ones where something actually broke. See [Follow your runs](https://support.rework.com/article/follow-your-runs).

![A run that stopped at the filter, with passed false in the output](https://storage.googleapis.com/reworkv3-public/success/260923/uLuHxBKMn0S4We6qosfwQfgicKZX8TzNR3uPa8ti1e9q1dgrRzyzxAHPMJT51g2Z/img.qAJJagYvHsqjtO7wRjbLwTxUY6mmL779XHiVxhZzmoVBVOD7fvDxuN1GxMWNkSU6.png)

## Filter or branch?

| Use | When |
| --- | --- |
| **Only continue if** | There is one path, and some events shouldn't go down it |
| **Branches** | Different events should go down different paths. See [Branch a flow into several paths](https://support.rework.com/article/branch-a-flow-into-several-paths) |

A filter keeps a single outgoing line, so it never splits the flow.
