Skip to content

setRuleValue

Server-side

Pair: getRuleValue

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 (Max 200 characters).
  • value: The value you wish to set for the rule (Max 200 characters).

Returns

Returns true if the rule value was set, false if invalid arguments were specified.

  • bool: result

Code Examples

server

This example shows how you could set a rule that shows that your script is running on the server.

setRuleValue("myScriptRunning", "yes")