This is the ThingsDB documentation for version v0, click here for the latest version!

has_type

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

This function does not generate an event.

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