GetVariable()

Gets the variable referenced by the given string; supports using "." for structures/scopes.

GetVariable( name=string );

Returns: any

Argument Description
name
string, required

Name of the variable to return, supports using "." for structures/scopes.

Examples

str="susi";
	writeOutput(getVariable('str'));
<span class="nf">setVariable</span><span class="p">(</span><span class="s1">&#39;session.AAA&#39;</span><span class="p">,</span> <span class="s2">&quot;Hello docs reader&quot;</span><span class="p">);</span>
<span class="nf">dump</span><span class="p">(</span><span class="nf">getVariable</span><span class="p">(</span><span class="s2">&quot;session.AAA&quot;</span><span class="p">));</span>
<span class="nf">dump</span><span class="p">(</span><span class="nf">getVariable</span><span class="p">(</span><span class="s2">&quot;session&quot;</span><span class="p">));</span>

See also