IsObject() [v1.0.90+]

Returns a non-zero number if the specified value is an object.

Boolean := IsObject(Value)

Parameters

Value

The value to check.

Return Value

This function returns 1 (true) if Value is an object, otherwise 0 (false).

Remarks

Any value which is not a primitive value (number or string) is considered to be an object, including those which do not derive from Object, such as COM wrapper objects. This distinction is made because objects share several common traits in contrast to primitive values:

Objects

Examples

Reports "This is an object." because the value is an object.

object := {key: "value"}

if IsObject(object)
    MsgBox, This is an object.
else
    MsgBox, This is not an object.