Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
function GetObjectState(objtype : String, id : String) : String |
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "GRELE" && Event.SourceId == "1" && Event.Action == "ON")
{
if(GetObjectState("GRAY", "1")=="DISARM")
{
SetObjectState("GRAY", "1", "ARM");
}
else
{
SetObjectState("GRAY", "1", "DISARM");
}
} |
| Info | ||
|---|---|---|
| ||
Some object types can have several states at the same time. For example: ATTACHED|DISSOLVED or ADDED|OFF|RECORDER_ON|RECORD |
...