This is the ThingsDB documentation for version v0, click here for the latest version!
Determines if a timer exists in the current scope.
This function does not generate an event.
has_timer(timer)
| Argument | Type | Description |
|---|---|---|
| timer | int (required) | Timer Id to check. |
Returns true if a timer with a given Id exists in the current scope and otherwise false.
This code shows an example use case of has_timer():
has_timer(123);
Example return value in JSON format
false