SetVariable()

Sets a variable value, supports scoped variable syntax

SetVariable( name=string, value=any );

Returns: any

Argument Description
name
string, required

Name of the variable to set, allows using "." for structures/scopes.

value
any, required

the value to set

Examples

	str="hi buddy";
	setVariable('str', "Value changed");
	writeOutput(str);

setVariable('session.AAA', "Hello docs reader"); dump(getVariable("session"));

See also