Logic Rules: Overview
Logic Rules are how you go from "the input fired" to "the right thing happens" without writing any code.
If all you want is "this input plays this show," you don't even need a rule. That's a Trigger, and you can wire one up in seconds. Reach for a Logic Rule when you need logic in between: combining several inputs, timers, counters, latches, or random choices.
A rule is a graph of building blocks connected by lines. You drag inputs (button presses, sensor activations, timers, webhooks) onto a canvas, drop in some logic (and, or, delay, counter, latch, random, sequence), and connect them to outputs (fire a show, send a webhook, notify another rule).
If you've used a "no-code" automation tool before (Twilio Studio, Node-RED, IFTTT), the metaphor is the same. We've just specialized it for show control.
What Logic Rules are good for
- Conditional show firing: "fire this show only when both the door and the floor plate are on"
- Escape room puzzle logic: "when all four switches are flipped, unlock the next phase"
- Timed puzzles: "press the four buttons in order within 20 seconds, or start again"
- Counting effects: "every fifth guest gets the rare scare instead of the regular one"
- Random selection: "when this trigger fires, randomly pick one of three shows"
- Taking turns: "each guest gets the next scare in the list, so nobody sees the same one twice in a row"
- Timed effects: "wait 30 seconds after the last guest leaves, then reset"
- Webhooks in and out: bridge to outside systems
Triggers vs. Logic Rules
For the simple case ("this input plays this show") you don't need a rule at all. Use a Trigger: quicker to set up, and all most shows need.
Reach for the full Logic Rules editor (Rules in the sidebar) when a scene depends on more than a single input: combinations, timing, counting, or state. Drag in whatever building blocks you need; the rest of this section covers them.
Triggers are free; Logic Rules are a paid feature. Triggers (wiring an input to play, stop, or lock a show or controller) are included on every plan. The full Logic Rules editor (gates, timers, counters, puzzles) is available on the Builder plan and up.
Rules run on the controller
Rules run on your controllers, not in the cloud. That means rule logic continues to work even if the cloud goes offline. IgorBox Studio is where you build and deploy them. Once a rule is on the controller, it runs on its own.
Rules span your whole system
A rule isn't limited to the controller it runs on. From a single rule you can:
- use an input from any controller as a condition: a button or sensor on one box can drive logic running on another, and
- fire a show on any other controller: light up one box and play audio on a second from the same condition.
So one box's sensor can feed the puzzle logic on a second box and launch scenes on a third. The only requirement is that your controllers are on the same local network (see Connectivity).
(For a plain input-to-show link with no logic, you don't need a rule at all. See Triggers, which work across controllers too.)
Deploy a rule and check that it loaded
A rule does nothing until you deploy it to its controller. Each rule carries a status badge that tells you where it stands:
| Badge | What it means |
|---|---|
| Draft | Not deployed yet. |
| Modified | A version is deployed, and you have newer changes that controllers do not have. Deploy to update them. |
| Pending | Deployed, and waiting for the controller to pick it up. |
| Partial | Some of the rule's controllers have picked it up and others have not yet. |
| Deployed | Every controller the rule needs has picked it up. |
| Rejected | The controller could not load the rule. Open the version history for the reason. |
Open Version history in the rule editor's toolbar to see each deployed version. With firmware 2.2.3, the controller reports whether it actually loaded the rule, not only that it received it:
| Version status | What it means |
|---|---|
| Pending | The controller has not picked this version up yet. |
| Downloaded | The controller received it, but did not confirm that it loaded. Older firmware stops here. |
| Installed | The controller confirmed loading this version at deployment. |
| Rejected | The controller could not load it. The reason shows whether the previous rule was kept running or no rule was active when deployment failed. |
These are results for each deployment, not a live status. An older version can still show Installed after a newer version replaces it. Check the latest deployment when confirming your changes.
If the latest version is rejected, fix what the reason points to and deploy again. Until then, do not assume the controller is running your latest changes.
Keep the controller that runs a rule up to date. Blocks that need newer firmware are only offered once that controller supports them. A controller on older firmware cannot report Installed or Rejected, and a block it does not recognize does nothing, so a rule can look deployed there while part of it is not working.
Where to next
- Building Blocks: what each block does, in plain English
- Triggers: fire a show straight from an input, no rule needed
- Examples: recipes for haunts, escape rooms, and immersive events