← Explore
Tutorial9 October 20256 min read

Building conditional logic in your automation flows

Most real automations need branching: do this if that is true, otherwise do something else. This tutorial walks through the condition, comparison, and switch nodes in Cueva Control.

Simple trigger-to-action flows are a great starting point, but real installations usually need logic: only fire this relay when that GPIO is low, send the HTTP request during business hours only or pick a different Art-Net scene based on a variable. Cueva Control handles all of this with condition and switch nodes.

The condition node

The Condition node takes a variable and a comparison operator (equals, not equals, greater than, less than, contains) and routes the flow down a true or false branch. Connect your trigger to the Condition input, then connect the true and false outputs to different action nodes.

The switch node

When you need more than two branches, use the Switch node. Define up to 16 cases, each with a value or range to match against the input variable. The node routes to the matching output, with a default output for anything unmatched.

  • Cases can match exact values, ranges, or regex patterns
  • The default output fires when no case matches
  • Cases are evaluated in order; first match wins
  • Use with a variable set by a GPIO or TCP trigger for dynamic routing

Tip: the Time node can be used as a condition input. Wire it before a Condition node to gate actions based on time of day or day of week.

RELO IO8

Featured product

RELO IO8

8 relay outputs, 8 GPIO inputs. Cloud-managed and PoE+ powered.

View product
Cueva Control Desktop

Featured product

Cueva Control Desktop

Node-based AV automation software for macOS and Windows.

View product

Continue reading

Tutorial5 min read

TCP command to relay: control physical outputs over the network

Send a TCP command from any device on the network and the IO8 switches a relay. Works with touch panels, screen controllers, building systems or any software that can send TCP.

Tutorial5 min read

GPIO button to TCP: send IP commands from a physical button

Wire a button to the IO8 and send a TCP command to any IP-controllable device the moment it is pressed. Works with projectors, displays, AV receivers and anything that accepts TCP.

← All articles
Send us a message