Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
 if (Event.SourceType == "GRELE" && Event.SourceId == "1")
{
 var msgevent = Event.Clone();
 if(Event.Action == "ON")
 {
  msgevent.SourceId = "2";
  DoReact(msgevent);
  msgevent.SourceId = "3";
  DoReact(msgevent);
 }
 if(Event.Action == "OFF")
 {
  msgevent.SourceId = "2";
  DoReact(msgevent);
 }
}