Determines if a module exists in ThingsDB. The scope restriction of the module has no impact on the result of this function.
This function does not generate a change.
has_module(name)
Argument | Type | Description |
---|---|---|
name | str (required) | Module to check. |
Returns true
if the module exists and otherwise false
.
This code shows an example use case of has_module():
has_module('DEMO5');
Return value in JSON format
false