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 else
#1
Im trying to get a pump to work, only if come conditions are met.
I am not good at scripting, but tried to make this script, but doesnt work properly.
Can anyone advice? Wink

value = grp.getvalue('1/5/1 or 1/5/2 or 1/5/3 or 1/5/4 or 1/5/5 or 1/5/6 or 1/5/7 or 1/5/8 or 1/5/9 or 1/5/10')
if (value == "on") then
  grp.write('1/4/23', true)
else grp.write('1/4/23', false)
end
Reply


Messages In This Thread
if else - by Bobby - 08.10.2018, 11:07
if else - by Kai-Roger - 08.10.2018, 11:11
RE: if else - by buuuudzik - 08.10.2018, 11:14
RE: if else - by Kai-Roger - 08.10.2018, 11:27
RE: if else - by admin - 08.10.2018, 11:22
RE: if else - by admin - 08.10.2018, 11:46

Forum Jump: