24.06.2022, 05:51
Use a numeric for loop:
Code:
for id = 1, 5 do
active = db:getone('SELECT active FROM schedulers WHERE id=?', id)
grp.checkupdate('40/0/' .. id, toboolean(active))
end