Description: This function returns a variable's default value.
Returns: Varies
Usage: Script or Steady State
Format: GetDefaultValue(Variable)
Parameters: Variable { Variable } { required } { no default }
Any expression for the variable value.
Comments: If the given variable does not have a default value this function will return Invalid. The current value of Variable does not affect the return value of this function.
Example:
If ! Valid(defValue);
[
defValue = GetDefaultValue(FindVariable("originalVal", Self(),
0, 1));
]
The above statement will assign the default value of original to defValue. The reason that the statement is inside a script is because FindVariable may only appear inside a script.
See Also: