Pref(key:Str, [index:Int]):Any

Access user configuration (preferences). The first parameter is the name of a preference setting, such as "Backup.Turn" or "Label.Ship". The function returns the value of this option, an integer, boolean or string.

If the option is an array option, the second parameter must be specified as the index into the array, starting at 1.

Since: PCC2 2.0.12

See also: Functions