SetRuleValue: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function | This function sets a rule value that can be viewed by server browsers. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setRuleValue ( string key, string value ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''key:''' The name of the rule | ||
*'''value:'''The value you wish to set for the rule | |||
*''' | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' if | Returns ''true'' if the rule value was set, ''false'' if invalid arguments were specified. | ||
==Example== | ==Example== | ||
This example | This example shows how you could set a rule that shows that your script is running on the server. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
setRuleValue ( "myScriptRunning", "yes" ) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{ | {{ASE_functions}} |
Revision as of 11:03, 12 September 2006
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" )