exists
- Check if timer established with specified ID
Edit
Edit
fields | type | description |
---|---|---|
timer_id | string | The identifier of the timer |
Edit
fields | type | description |
---|---|---|
bool | if timer is established, otherwise |
Edit
-- module.lua
local timer = require("timer")
if timer.exists("timer_id") then
print("timer exist")
else
print("timer does not exist")
end