getVariable

Retrieves value of a variable

getVariable(name) → returns any

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

getVariable Argument Reference

name string
Required

Examples sample code invoking the getVariable function

a=1;
writeOutput(getVariable('a'));

Expected Result: 1


Fork me on GitHub