# Display Rule

{% embed url="<https://youtu.be/dpg-covPXMY?si=QtjdZVL1Xb3_-ZEj>" %}

There may be cases where you want to optionally include or exclude certain parts of your template in your document. Documint allows you to do this with Conditional Logic.&#x20;

For example, let's say we were creating a contract template and only wanted to include certain legal language if the contract total was over $15,000. We could accomplish this by adding the condition (when `grand_total` `is greater than or equal to` `15000`) to the row with the legal language using the Logic Editor.

![](https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FM9SC3IkILzrQBCUhGYCB%2FCaptura%20de%20Tela%202025-06-30%20a%CC%80s%2018.01.30.png?alt=media\&token=4d1420a3-eff9-41c2-8964-8778ae09d69b)

This condition tells Documint to only display the row element and all of its children in the document being created when the value of `grand_total` is equal to or greater than $15,000.


---

# 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.documint.me/legacy-documentation/display-rule.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.
