Conditional Logic
Set Conditional Logic.
newCircuit.setConditionalLogic({
type: "TARGET",
targetCondition: "1",
interval: 120000 // milliseconds, Circuit loop called every two minutes
})/* The type of the conditional logic. It can be "THRESHOLD", "TARGET", or "EVERY.*/
type: "THRESHOLD" | "TARGET" | "EVERY".
/* Used when the type is "THRESHOLD". It's the threshold number of conditions that
must have passed in order for the Lit Action to run.*/
value?: number;
/* Used when the type is "TARGET". It's the specific Condition Id (In order of Conditions Added to Array starting from id "1") that must be met in order for the Lit Action to run.*/
targetCondition?: string;
/* Optional. It's the frequency of condition checks. If omitted, the condition is checked
every 30 minutes (1,800,000 ms). Resolves in milliseconds.*/
interval?: number;Last updated