WoW API: setglobal
Set a global variable, from a string.
setglobal( "globalName", value );
Parameters
Arguments
- ("globalName", value)
- globalName
- String - Name of the global you want to change.
- value
- Any - Value you want to set the global to.
Returns
- Always returns nil.
Example
script setglobal( "MyVariable", 1234 );
Result
MyVariable = 1234
-Tigerheart 21:42, 30 June 2006 (EDT)