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
#1
Hi

I would like to use a booleon to send three values. I am mostly using the FBEditor to create logic. But i cant seem to find the right way to get this solution to work.

Is there some converter of some kind?
Reply
#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


Forum Jump: