GetVariable()
Gets the variable referenced by the given string; supports using "." for structures/scopes.
GetVariable( name=string );
Returns: any
| Argument | Description |
|---|---|
|
name
string,
required
|
edit
Name of the variable to return, supports using "." for structures/scopes. |
Examples
edit str="susi";
writeOutput(getVariable('str'));
setVariable('session.AAA', "Hello docs reader");
dump(getVariable("session.AAA"));
dump(getVariable("session"));
See also
- Scopes
- SetVariable()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)