has_type

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

This function does not generate a change.

Function

has_type(type)

Arguments

Argument Type Description
type 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