« Back to Product

Documentation

IPS_SetEventTrigger

 boolean IPS_SetEventTrigger (int $EventID, int $TriggerType, int $TriggerVariableID) 

Parameters

EventID

ID of the event to be changed

TriggerType
Value Description
0 On Variable Update
1 On Variable Change
2 On Limit Exceed - Value is determined by IPS_SetEventTriggerValue
3 On Limit Drop - Value is determined by IPS_SetEventTriggerValue
4 On specific Value - Value is determined by IPS_SetEventTriggerValue
TriggerVariableID

VariableID on whose change or update should be responded

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

This command configures a triggering event. It defines the observed variable TriggerVariableID and which TriggerType the event should react to.

Example

IPS_SetEventTrigger($EventID, 0, 12345);  //OnUpdate for variable 12345
Any questions?