getVariable

Retrieves value of a variabl

getVariable(name) → returns any

This function requires Lucee. Not supported on Adobe ColdFusion.

getVariable Argument Reference

name string
Required

Examples sample code invoking the getVariable function


Retrieve value of a variable

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

Expected Result: 1


Fork me on GitHub