Sets a variable in the name parameter to the value of the value parameter.
setVariable(name, value)
returns void
Name | Type | Required | Default | Description |
---|---|---|---|---|
name | string | Yes | Variable name | |
value | string | Yes | A string, the name of a string, or a number |
a=1;
setVariable('a',2);
writeOutput(a);