06.05.2017, 11:53
Hi,
I not getting this code to work as intended.
This is where I struggle:
if not value == (2 or 8 or 20) then
grp.write('Status - Scener - Kjellerstue', 3)
end
Anyone know what I am doing wrong?
Thanks,
Mr.D
I not getting this code to work as intended.
This is where I struggle:
if not value == (2 or 8 or 20) then
grp.write('Status - Scener - Kjellerstue', 3)
end
Anyone know what I am doing wrong?
Code:
value = event.getvalue()
value1 = grp.getvalue('Status - Skallsikring - Av/På')
if value == 2 and value1 == true then
end
if value == 8 and value1 == true then
grp.write('Status - Scener - Kjellerstue', 1)
end
if value == 20 and value1 == true then
grp.write('Status - Scener - Kjellerstue', 2)
end
if not value == (2 or 8 or 20) then
grp.write('Status - Scener - Kjellerstue', 3)
end
Thanks,
Mr.D