Difference between revisions of "NXSL:GetConfigurationVariable"

(Created page with "__NOTOC__ Get value of server's configuration variable. Function returns value of requested variable or specified default value if given variable is not set. '''Since:''' 1.2...")
 
m (Text replacement - "^" to "{{deprecated}}")
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Get value of server's configuration variable. Function returns value of requested variable or specified default value if given variable is not set.
Get value of server's configuration variable.


'''Since:''' 1.2.2
'''Since:''' 1.2.2

Latest revision as of 16:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

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"