In most cases you'll need to resolve a JavaScript variable value.
For example the following expression resolves a value of a
hosts JavaScript
variable:
${hosts}
If this variable is not declared in JavaScript file you are querying you
will get an
undefined value.
The
${} nexl expression is always equal to
undefined value
because it doesn't contain any JavaScript variable name to resolve.
Variable name can be provided dynamically. Let's consider the following code
snippet:
X = 'myVar';
myVar = 79;
The following expression first resolves a 'myVar' string value and then
resolves a value of myVar variable:
${${X}}