has_enum

Determines if a enumerator type exists in the current @collection scope.

This function does not generate an event.

Function

has_enum(enum)

Arguments

Argument Type Description
enum str (required) Enum name to check.

Return value

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

Example

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

has_enum('XXX');

Return value in JSON format

false