# Skip a stage based on context

1. Open the policy version (draft) in the editor.
2. On the stage you want to make conditional, fill **Skip if (JSONLogic)**.
3. Use a JSONLogic expression that returns truthy to skip. Examples:
   * Skip when amount under 10 000: `{"<=":[{"var":"amount"},10000]}`
   * Skip for a specific district: `{"==":[{"var":"district"},"D1"]}`
   * Skip unless flagged: `{"!":{"var":"high_risk"}}`
4. Save and activate.

The expression evaluates against the request's frozen `context`, and is checked when the stage would otherwise activate. A skipped stage emits a `stage_skipped` event and the flow advances.


---

# 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.openg2p.org/platform/platform-services/approval-workflow-engine/how-to/conditional-skip.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.
