Description of MUSHclient world function: world.GetVariable
Name | GetVariable |
---|---|
Type | Method |
Summary | Gets the contents of a variable |
Prototype | VARIANT GetVariable(BSTR VariableName);
|
Description | Gets the contents of the named variable. If the named variable does not exist, EMPTY is returned. If the name given is invalid, NULL is returned. (Use "IsEmpty" and "IsNull" to test for these possibilities). |
VBscript example |
|
Jscript example |
|
PerlScript example |
|
Python example |
|
Lua example |
|
Lua notes |
|
Returns | The contents of the specified variable. |
See also ...
Function | Description |
---|---|
GetEntity | Retrieves the value of an MXP server-defined entity |
GetPluginVariable | Gets the contents of a variable belonging to a plugin |
GetPluginVariableList | Gets the list of variables in a specified plugin |
GetVariableList | Gets the list of variables |
SetVariable | Sets the value of a variable |
Enter a word or phrase in the box below to narrow the list down to those that match.
The function name, prototype, summary, and description are searched.
Leave blank to show all functions.
Many functions return a "code" which indicates the success or otherwise of the function.
You can view a list of the return codes
The "prototype" part of each function description lists exactly how the function is called (what arguments, if any, to pass to it).
You can view a list of the data types used in function prototypes
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.