has_type

Determines if a Type exists in the current @collection scope.

This function does not generate an event.

Function

has_type(type_name)

Arguments

Argument Type Description
type_name str (required) Type name to check.

Return value

Returns true if a Type with a given name exists and otherwise false.

Example

This code shows an example use case of has_type():

has_type('XXX');

Return value in JSON format

false