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.

Use Booleon to send 3 values
#2
Hi.

You can use this script to send three values.

Copy and paste in an event based script.
Code:
value = event.getvalue()

if (value == true) then -- true or false
  grp.write('1/1/1', true) -- change group adress and value
  grp.write('1/1/2', 50)
  grp.write('1/1/3', 100)
  grp.write('1/1/4', 255)
else
  grp.write('1/1/1', false)
  grp.write('1/1/2', 0)
  grp.write('1/1/3', 0)
  grp.write('1/1/4', 0)
end
Reply


Messages In This Thread
Use Booleon to send 3 values - by Tokatubs - 19.12.2018, 22:05
RE: Use Booleon to send 3 values - by Rauschentofft - 19.12.2018, 22:29

Forum Jump: