VoidExpanse/scope-config

From AtomicTorchWiki
Revision as of 07:44, 12 February 2014 by Atomic-admin (talk | contribs)
GetFlag
Arguments Returns Example
  • String: name

Boolean - whether the flag is set or not.

var a = config.GetFlag("some_var");

Description

Returns a boolean server flag value by name. Basically used to read server config options.

var a = config.GetFlag("some_var");


GetValue
Arguments Returns Example
  • String: name

Mixed - a particular value of config.

var a = config.GetValue("some_var");

Description

Returns a server variable value by name. Basically used to read server config options. Standard return types are string, integer, float, etc.