Sets a variable in the name parameter to the value of the value parameter.
setVariable(name, value)
→ returns void
a=1;
setVariable('a',2);
writeOutput(a);
Expected Result: 2
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.