Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
function DoReact(msgevent : MsgObject) |
...
| Code Block | ||
|---|---|---|
| ||
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);
}
} |