---
title: "Can a variable be put in the Toolkit plug-in's Sampler script field"
description: "Variables can be used in the Toolkit plug-in's Sampler script field if resolvable. The variable must follow the rules of Variable Scoping and Resolution to work correctly."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004027029-geneos-can-a-variable-be-put-in-the-toolkit-plug-in-s-sampler-script-field/index.html"
---
**Yes, as long as the variable can be resolved according to the rules of [Variable Scoping and Resolution](https://docs.itrsgroup.com/docs/geneos/current/processing/gateway-administration/gateway_user_variables_and_environments/index.html#Variable_Scoping_and_Resolution). Below is an example Toolkit sampler referencing variable $(rdfd\_hostname) in the Sampler Script field:**

![7231898456221 mceclip0](https://docscdn.itrsgroup.com/faq/images/geneos/115004027029-7231898456221-mceclip0.png)


