Difference between revisions of "NXSL:GetConfigurationVariable"
Jump to navigation
Jump to search
Tomas Kirnak (talk | contribs) |
Tomas Kirnak (talk | contribs) (Undo revision 1250 by Tomas Kirnak (talk)) |
||
Line 5: | Line 5: | ||
== Syntax == | == Syntax == | ||
GetConfigurationVariable(variableName, [''defaultValue'']) | GetConfigurationVariable(''variableName'', [''defaultValue'']) | ||
== Parameters == | == Parameters == |
Revision as of 11:57, 22 October 2014
Get value of server's configuration variable.
Since: 1.2.2
Syntax
GetConfigurationVariable(variableName, [defaultValue])
Parameters
variableName | Server's configuration variable name. |
defaultValue | Default value to be returned if given variable is not set. If omited, NULL will be used as default value. |
Return Value
Value of requested variable or specified default value if given variable is not set.
Examples
GetConfigurationVariable("NumberOfStatusPollers") -> "10" GetConfigurationVariable("BadVariable") -> NULL GetConfigurationVariable("BadVariable", 22) -> "22"