Skip to content

__isVarDefined

JMeter __isVarDefined function reference: syntax, parameters, and practical examples for parameterizing test plans with dynamic values.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Also documented in context in the full Functions and Variables reference.

The __isVarDefined function returns true if variable exists or false if not.

NameRequiredDescription
Variable NameYesThe Variable Name to be used to check if defined

Example:

Terminal window
\${__isVarDefined(JMeterThread.last_sample_ok)}

will return true

On this page