Determines if a enumerator type exists in the current @collection scope.
This function does not generate a change.
has_enum(enum)
| Argument | Type | Description | 
|---|---|---|
| enum | str (required) | Enum name to check. | 
Returns true if a enumerator type with a given name exists and otherwise false.
This code shows an example use case of has_enum():
has_enum('XXX');
Return value in JSON format
false