SetRuleValue: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | |||
This function sets a rule value that can be viewed by server browsers. | This function sets a rule value that can be viewed by server browsers. | ||
Line 9: | Line 10: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''key:''' The name of the rule | *'''key:''' The name of the rule | ||
*'''value:'''The value you wish to set for the rule | *'''value:''' The value you wish to set for the rule | ||
===Returns=== | ===Returns=== | ||
Line 21: | Line 22: | ||
==See Also== | ==See Also== | ||
{{ | {{Announce functions}} |
Latest revision as of 16:19, 30 January 2009
This function sets a rule value that can be viewed by server browsers.
Syntax
bool setRuleValue ( string key, string value )
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 could set a rule that shows that your script is running on the server.
setRuleValue ( "myScriptRunning", "yes" )
See Also