# Logic Gate

Logic gate block can be used to set a condition and only when the condyion is met the downstream blocks will be run. Logic gate takes only variables as input.

## Example

In the following example we will ask a question and and score the relevance of the question to New York's taxi trip. If the relevance score is greater than or equal to 5 we will follow a particular flow. If the score is less than 5, we will follow a particular flow. If a condition is not met then the downstream blocks will not run.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIQKNeqjEeOp9UwUcB9R9%2Fuploads%2F5Uc0zT8rSE01jlg8pKNI%2FLogic%20Gate.mp4?alt=media&token=dd098a36-7955-4cd1-9fbf-57acde24ce9a>" %}


---

# 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.zerve.ai/guide/canvas-view/blocks-and-connections/block-types/logic-gate.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.
