Trigger action when both a and b are set, Trigger action when both a and b are set -3 – Clear-Com Logic-Maestro User Manual

Page 131

Advertising
background image

Clear-Com Communication Systems
Eclipse Logic Maestro Instruction Manual

3 - 3

TRIGGER ACTION WHEN BOTH A AND B ARE SET

// When control AND1 is activated and control AND2 is activated, activate control FRLY1

using System;
using ClearCom.ScriptHost;
using ClearCom.ScriptLibrary;
using ClearCom.Entities;
using EMS.MapClient;
using EMS.MapClient.Tables;
using EMS.MapClient.Tables.Actions;
using Shared.Enums;

namespace CustomControlMacros
{
public class CustomMacro : ScriptBase
{
public override void OnUserStart()
{

// Fetch the elements we need.
ControlMacro AND1 = ControlMacro.GetControl("AND1");
ControlMacro AND2 = ControlMacro.GetControl("AND2");
ControlMacro FRLY1 = ControlMacro.GetControl("FRLY1");

FRLY1.TriggersIf(AND1, Condition.AND, AND2);
}
}
}

Advertising