# Formatting Variables

### Using Variables

Learn how to add, use, edit and manage variables in your documents so you can pull in different data for each record in your data source.

{% embed url="<https://youtu.be/XqjklvcgrCY>" %}

### Sorting looped or repeating line items

In this video you'll learn how to sort your looped or repeated line items into ascending or descending order.

{% embed url="<https://youtu.be/wFXzx2oPpwk>" %}

### Format Numbers

Follow along in this video to learn more about how to transform numbers from your data into any format.

{% embed url="<https://youtu.be/WBOvxcoUSMY>" %}

### Format dates

Follow along in this video to learn more about how to transform dates from your data into any format.

{% embed url="<https://youtu.be/LGBAtZxoivo>" %}

### **Conditional Logic**

Learn how to use the conditional logic function to show or hide sections of your document based on your data.

{% embed url="<https://youtu.be/Uz7XWad2AqM>" %}

### Display Rich Text

Follow along in this video to learn more about how to show rich text formatting in your document.

{% embed url="<https://youtu.be/OPSqcy8E2Bk>" %}

### **Clickable Links**

Learn how to make URLs and links clickable in your documents

{% embed url="<https://youtu.be/glwvjbRwaEY>" %}


---

# 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/how-to-videos/formatting-variables.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.
