RemoveRuleValue: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) m (fix typo in example comment) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | |||
This function removes a set rule value that can be viewed by server browsers. | This function removes a set rule value that can be viewed by server browsers. | ||
Line 14: | Line 15: | ||
==Example== | ==Example== | ||
This example shows how you could | This example shows how you could '''unset/remove a rule''' that shows that your script is running on the server. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
removeRuleValue ( "myScriptRunning" ) | removeRuleValue ( "myScriptRunning" ) | ||
Line 20: | Line 21: | ||
==See Also== | ==See Also== | ||
{{ | {{Announce functions}} |
Latest revision as of 09:29, 3 October 2024
This function removes a set rule value that can be viewed by server browsers.
Syntax
bool removeRuleValue ( string key )
Required Arguments
- key: The name of the rule you wish to remove
Returns
Returns true if the rule value was removed, false if it failed.
Example
This example shows how you could unset/remove a rule that shows that your script is running on the server.
removeRuleValue ( "myScriptRunning" )
See Also