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.

30 floors skyscraper on visu
#3
(Yesterday, 15:30)Daniel Wrote: You can do it like this, just create more ifs and put corect plan IDs
Code:
localbus.listen('object', '0/0/1', (value) => {
  if (value==0) {
    Visu.showPlan(7);
  }
   else if (value==1) {
    Visu.showPlan(17);
  }
  else {
    Visu.showPlan(13);
  }
});

That's perfect, but I would like to add a confirmation: showPlan not just when the object has a certain value, but when another object (boolean) is pressed.
Reply


Messages In This Thread
30 floors skyscraper on visu - by gdimaria - Yesterday, 15:18
RE: 30 floors skyscraper on visu - by gdimaria - 11 hours ago

Forum Jump: