Returning the type of an objectΒΆ

typeof()

Return the type of an object


SYNTAX

typeof(object_id)

Returns the type of the object specified by object_id. See Object types for the possible return values, which are defined in the include file $SCULPTOR/include/sculptor.h.

This function returns an integer value.


EXAMPLE

!function GetType(Object) {
    switch typeof(Object) {
        case = OT_BUTTON:
            info "Object is a button"
            break
        case = OT_FUNC:
            info "Object is a function"
            break
        ...
    }

    return
}