This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

if condition not working
#1
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
Reply


Messages In This Thread
if condition not working - by mai - 02.07.2024, 07:26
RE: if condition not working - by admin - 02.07.2024, 07:30
RE: if condition not working - by mai - 02.07.2024, 07:48
RE: if condition not working - by Bitver - 02.07.2024, 19:42
RE: if condition not working - by admin - 02.07.2024, 07:53
RE: if condition not working - by mai - 02.07.2024, 07:59
RE: if condition not working - by admin - 03.07.2024, 07:26

Forum Jump: