@TYPE

The TYPE function returns the definition type of the last parameter it evaluates. This function takes one or more parameters, each evaluated as a property and each evaluated in the context of the parameter before it in the function’s parameter list. The function supports the integral number, Boolean, and string return types.

In a Boolean context, the function will return true if the last parameter evaluated exists in the current context, or false if it does not exist. In a string context, this function returns the name of the definition type, e.g. object, transaction, etc. In an integral number context, this function returns the internal identifier for that definition type.

In current implementations this function has limited usage and may be deprecated in a future release.

Parameters

@TYPE (Property 1 [, ..., Property N])
Property 1
Required property parameter; this is the first parameter evaluated by the function in the context of the function call. This parameter should be a child member of the definition setting the function’s context. If it is not, the function will return false or null depending on the data type of the context. If this is the only parameter, and it exists, the return will be either true or the identifier for the definition type, depending on context.
Property N
Optional property parameter(s); each evaluated in the context of the parameter before it and assumed to be a child member of that previous property. Each additional Property N parameter will set the context for the next in the list. The last Property N parameter will be evaluated for its definition type, and the function will then return true or the identifier for this type if it exists, or else false or null if it does not exist.

Supported Return Types