03.12.2021, 07:04
Hello. so, my head is hurting at the moment. Who won't this script work?
the tag "screensUP" returns nil.
I was thinking perhaps it could be a missmatch with datatypes, but the if statement should at least return false?
the tag "screensUP" returns nil.
I was thinking perhaps it could be a missmatch with datatypes, but the if statement should at least return false?
Code:
now=os.date('*t')
screens = grp.getvalue('32/1/15') --DT 9
log(screens)
if screens == now.hour then
log('OK')
screensUp = true
else
screensUp = false
end
grp.checkwrite('7/3/0', screensUp)
log('Screens UP', screensUP)