31.08.2017, 11:29
You can use an object or a storage variable as a status, then check this status after each sleep:
Code:
os.sleep(23)
if not grp.getvalue('1/1/1') then
return
end