23.09.2018, 10:54
I did what you told me and now the script works. Thank you very much. The new code look like this:
value = event.getvalue('0/2/10')
keep_on = grp.getvalue('32/1/4')
if keep_on == false then
if value == true then
os.sleep(600)
grp.write('0/2/10', false)
end
end
I didnt fully understand what you meant by number 1. Should you not insert which object you want to check in event.getvalue like I have done now?
Do you also have another and better method for waiting in the script?
value = event.getvalue('0/2/10')
keep_on = grp.getvalue('32/1/4')
if keep_on == false then
if value == true then
os.sleep(600)
grp.write('0/2/10', false)
end
end
I didnt fully understand what you meant by number 1. Should you not insert which object you want to check in event.getvalue like I have done now?
Do you also have another and better method for waiting in the script?