---
title: Use a Variable in your Template
slug: rm/use-a-variable-in-your-template
docTags: 
createdAt: 2026-06-09T13:38:47.513Z
---

After you have [Add a Variable](docId:5A1U3H8-jv0G31BhTtU8y) (also known as parameters) to your document template, you can use them in a variety of ways. You may be interested in:

- outputting the variable value (i.e. Out tag)
- using the variable in a condition statement (If tag)
- using the variable in a for loop (ForEach tag)

To output the value of a variable:

1. Create a new Out tag.
2. Set the value of the Out tag to $&#x7B;VariableName}, where VariableName is the name of the variable that you want to output.
3. Here is an example of an Out tag where the Priority variable is configured to be outputted:

![](https://files.helpdocs.io/4rdnduk17o/articles/3fdf8tqijv/1584993331841/use-a-variable-1.png)

To use a variable in a condition statement:

1. Create a new If tag.
2. Include $&#x7B;VariableName} in your select statement, where VariableName is the name of the variable that you want to output. Here is an example of an If tag where a value from the data source is compared to the Priority variable:

   ![](https://files.helpdocs.io/4rdnduk17o/articles/3fdf8tqijv/1584993344577/use-a-variable-2.png)

