> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/runner/stop-when-value.md).

# Stop When Value

Stop When Value ends the remaining steps in the Test Case when a [Value Store](/values/value-store.md) item matches the comparison you set. Use it as a conditional exit based on data captured earlier in the Flow.

![Stop when value Test Step](https://app.does.qa/screenshots/node/runner_stop_value.png)

## When to use it

* End the Flow early when a stored flag or status code matches an expected value.
* Skip optional steps when a captured API response shows the journey already completed.
* Store the value first in the [Value Store](/values/value-store.md) when the Flow needs fresh data to compare.

## Configure

### Basics

| Field                | What to set                                                                         |
| -------------------- | ----------------------------------------------------------------------------------- |
| **Value Store Item** | The stored value to read, as text and/or [Values](/values/value-store.md)           |
| **Comparison Type**  | [Comparison Type](/test-step-options/comparison-type.md)                            |
| **Expected Value**   | Expected text and/or [Values](/values/value-store.md) when the comparison needs one |

### Advanced

| Field                                 | What to set                                                          |
| ------------------------------------- | -------------------------------------------------------------------- |
| **Value Standardization**             | [Value Standardization](/test-step-options/value-standardization.md) |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md)                 |
| **When should screenshots be taken?** | `Always` or `On Failures` (default)                                  |

## Related

* [Check Value Store](/test-steps/check/check-value-store.md)
* [Stop When Element Is Displayed](/test-steps/runner/stop-when-element-is-displayed.md)
* [Comparison Type](/test-step-options/comparison-type.md)
* [Runner](/test-steps/runner.md)

**Tags:** `runner`, `stop`, `value`
