Switch
Overview
The switch expression is a control flow expression that evaluates a list of boolean conditions in order. The first true condition executes its steps; if none match, it runs the optional default. Each case pairs a condition with a list of expressions; empty steps allow silent passes.
Low-Code Editor
Add a switch step, define DSL conditions per case and add expressions inside each case.

- Define the Number of Cases: Click on the ”+” or ”-” symbol to add or remove cases.
- Define Condition in a Case: Select a case block; enter a boolean DSL expression in the editor (e.g.,
data.operation == "sum")’ - Add Steps in the Case: Click ”+” inside the case to add expressions.
- Configure the Default: Add fallback steps. Omit for silent skips on no-match.
Syntax Reference
Schema
Fields
Practical Examples
Example 1: Simple ID Match
Notify only if the user is not the requestor
Expectation: If there’s a match, stay silent; If not, send a message to the user
Example 2: Role-Based Welcomes
Tailor onboarding by access level.
Expectation: Routes to specific action and welcome message based on user’s access level.
Example 3: Temperature Thresholds
Alert or log based on sensor data
Expectation: Based on the temperature send an alert or log.