02.07.2024, 07:26
Why is this if condition not working? That is, even if some address is at '1', it always enters 'else'
if (grp.read('2/0/6')==1 or grp.read('2/0/8')==1 or grp.read('2/0/10')==1) then
grp.write('12/0/100', 1) -- Zonas Comunes VA P0
else
grp.write('2/0/100', 0)
end
if (grp.read('2/0/6')==1 or grp.read('2/0/8')==1 or grp.read('2/0/10')==1) then
grp.write('12/0/100', 1) -- Zonas Comunes VA P0
else
grp.write('2/0/100', 0)
end