In query mode, return type is based on queried flag.
Long name (short name) |
Argument types |
Properties |
|
arraySize(arraySize)
|
string
|
|
|
returns the size of the array named "string". If no such
variable exists, it returns 0. If the variable is not an
array, it returns 1.
|
|
category(cat) 2023
|
string
|
|
|
Set category for the specified variables.
This flag can also be combined with list/listModified flags to get all the
variables in the specified category.
|
|
clearArray(ca)
|
string
|
|
|
If there is an array named "string", it is set to be empty.
Empty arrays are not saved.
|
|
clearStash(cs)
|
string
|
|
|
Clear backup copy of a variable.
|
|
default(d) 2023
|
boolean
|
|
|
The variable's current and default values will be set to the specified
values.
This flag can also be combined with the query flag to get the default
value or with the exists flag to determine if a default value has been
specified.
It can also be used with list/listModifed flags to
list variables with a default value.
|
|
exists(ex)
|
string
|
|
|
Returns 1 if a variable named "string" exists, 0 otherwise.
The default/transient flags can be used to list variables
that have a default value or are transient.
All other flags will be ignored if this is used. (Query has
higher precedence)
|
|
floatArray(fa)
|
string
|
|
|
Creates a new empty float array variable named "string".
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
floatValue(fv)
|
[string, float]
|
|
|
creates a new variable named "string" with float value "float".
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different)
|
|
floatValue2(fv2) 2023
|
[string, float, float]
|
|
|
Creates a new variable named "string" with a 2 element float array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
floatValue3(fv3) 2023
|
[string, float, float, float]
|
|
|
Creates a new variable named "string" with a 3 element float array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
floatValue4(fv4) 2023
|
[string, float, float, float, float]
|
|
|
Creates a new variable named "string" with a 4 element float array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
floatValueAppend(fva)
|
[string, float]
|
|
|
adds this value to the end of the array of floats named "string".
If no such array exists, one is created. If there was a float
value with this name before, it becomes the first element of the
array. If any other kind of value existed, it is overridden.
|
|
init(ini) 2023
|
boolean
|
|
|
Used to initialize or reset variables. If the flag is set to true or the
variable does not exist then the variable's current and default values
will be set to the specified values. If the flag if set to false then
only the default value will be set and the current value will not be
modified.
|
|
intArray(ia)
|
string
|
|
|
Creates a new empty int array variable named "string".
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
intValue(iv)
|
[string, int]
|
|
|
creates a new variable named "string" with integer value "int".
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
intValue2(iv2) 2023
|
[string, int, int]
|
|
|
Creates a new variable named "string" with a 2 element int array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
intValue3(iv3) 2023
|
[string, int, int, int]
|
|
|
Creates a new variable named "string" with a 3 element int array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
intValue4(iv4) 2023
|
[string, int, int, int, int]
|
|
|
Creates a new variable named "string" with a 4 element int array.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
intValueAppend(iva)
|
[string, int]
|
|
|
adds this value to the end of the array of ints named "string".
If no such array exists, one is created. If there was an int
value with this name before, it becomes the first element of the
array. If any other kind of value existed, it is overridden.
|
|
list(l)
|
boolean
|
|
|
This returns a list of all the defined variable names.
The category flag can be used to list variables in the specified
category and the default/transient flags can be used to list
variables that have a default value or are transient.
All other flags will be ignored if this one is used. (Query and exists
flags have a higher precedence).
|
|
listCategories(lc) 2023
|
boolean
|
|
|
This returns a list of all the defined variable categories. All other
flags will be ignored if this one is used. (Query and exists flags
have a higher precedence).
|
|
listModified(lm) 2023
|
boolean
|
|
|
This returns a list of all the variables that have been changed from
their default value.
Variables that don't have a default value will also be returned unless
the default flag is used to filter the list to variables that have a
default value. The category flag can also be used to filter the list by
category.
All other flags will be ignored if this one is used. (Query and exists
flags have a higher precedence).
|
|
prefFile(pf) 2023
|
string
|
|
|
Flag need to be used in conjunction with category
Specify where the optionVars from specified category need to be saved when saving preferences.
|
|
remove(rm)
|
string
|
|
|
removes the variable named "string", if one exists.
Note: all removals are done before any value
setting, if both the -r and other (-sv, -iv, -fv) flags are
used in the same command.
|
|
removeFromArray(rfa)
|
[string, int]
|
|
|
removes the element numbered "int" in the array named "string".
Everything beyond it then gets shuffled down.
|
|
stash(st)
|
string
|
|
|
Make a backup copy of a variable.
|
|
stringArray(sa)
|
string
|
|
|
Creates a new empty string array variable named "string".
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different).
|
|
stringValue(sv)
|
[string, string]
|
|
|
creates a new variable named using the first string with value given
by the second string.
If a variable already exists with this name, it is overridden
in favour of the new value (even if the type is different)
|
|
stringValueAppend(sva)
|
[string, string]
|
|
|
adds the value given by the second string to the end of the array of
strings named by the first string.
If no such array exists, one is created. If there was a string
value with this name before, it becomes the first element of the
array. If any other kind of value existed, it is overridden.
|
|
transient(t) 2023
|
boolean
|
|
|
Indicates that specified variables will not be persisted across sessions.
This flag can also be combined with -exists to determine if a variable is
transient.
|
|
unstash(us)
|
string
|
|
|
Restore a variable from a backup copy.
|
|
version(v)
|
int
|
|
|
Preferences version number to warn about incompatbile preference
files
|
|