Objects with Values

Objects can have a value property attached to the object definition. Physical constants or objects that represent specific values (pi for example) are created with object definitions that have Value properties attached. The Value property is in the Core namespace.

Note that the value attached to an object can be any expression, it's not limited to just numeric values. For instance, the TypeErrorColor object has a value that is an ARGB object.

Once a value is attached to an object definition, that value is used when the Evaluate command is applied to an expression.

In code, the GetValue built in function returns the expression in the Value property of an object definition.