This is the ThingsDB documentation for version v0, click here for the latest version!
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 an event.
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