---
title: "__evalVar"
description: "JMeter __evalVar function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values."
url: https://docs.jmeter.ai/functions/evalvar/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# __evalVar

*Also documented in context in the [full Functions and Variables reference](/user-manual/functions/#__evalVar).*

The evalVar function returns the result of evaluating an expression stored in a variable.

This allows one to read a string from a file, and process any variable references in it.
For example, if the variable “`query`” contains “`select \${column} from \${table}`”
and “`column`” and “`table`” contain “`name`” and “`customers`”, then `\${__evalVar(query)}`
will evaluate as “`select name from customers`”.

| Name | Required | Description |
| --- | --- | --- |
| Variable name | Yes | The variable to be evaluated. |

## Related

- [Functions and Variables Guide](/topics/functions-and-variables/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Functions Reference](/user-manual/functions/)
- [Component Reference](/user-manual/component-reference/)
