GetRuleValue
Jump to navigation
Jump to search
This function gets a rule value. A rule value is a string that can be viewed by server browsers and used for filtering the server list.
Syntax
strig getRuleValue ( string key )
Required Arguments
- key: The name of the rule
- value:The value you wish to set for the rule
Returns
Returns true if the rule value was set, false if invalid arguments were specified.
Example
This example shows how you can check if a rule is set.
if ( getRuleValue ( "myScriptRunning" ) ~= false ) -- the value is set end