13.05.2019, 06:54
It works but it does the same thing as just having one line:
Here's what your current script does:
value = grp.getvalue() - no address/name is passed to grp.getvalue(), so value is nil
if value == upp or value == down then - both upp and down are not defined so they are nil, so the actual comparison is if nil == nil or nil == nil then
Code:
grp.write('10/1/2', true) -- lock automatics
Here's what your current script does:
value = grp.getvalue() - no address/name is passed to grp.getvalue(), so value is nil
if value == upp or value == down then - both upp and down are not defined so they are nil, so the actual comparison is if nil == nil or nil == nil then