Skip to main content

Switch Node

Purpose: Conditional branching based on data evaluation Switch nodes evaluate conditions and route execution to different paths.
Switch node visual representation
Switch node visual representation
Node Handles:
Left Side - Condition InputReceives data to evaluate against conditional branches.Accepts:
  • Workflow variables
  • Previous node outputs
  • Template expressions
  • Any data for conditional evaluation
Switch nodes support dynamic branching: you can add multiple ELIF branches for complex conditional logic. Branches are evaluated in order: IF → ELIF 1 → ELIF 2 → … → ELSE.
Condition Operators: Splox switch nodes support 14 different operators for flexible conditional logic:

String Matching (6 operators)

contains
string
Check if value contains substring (case-insensitive)Example: "Hello World" contains "world"true
not_contains
string
Check if value does not contain substringExample: "Hello World" not_contains "xyz"true
equals
string
Exact match comparison (case-insensitive)Example: "admin" equals "ADMIN"true
not_equals
string
Not equal comparisonExample: "user" not_equals "admin"true
starts_with
string
Check if value starts with prefixExample: "Hello World" starts_with "Hello"true
ends_with
string
Check if value ends with suffixExample: "file.pdf" ends_with ".pdf"true
in
string
Check if value exists in comma-separated listExample: "apple" in "apple,banana,orange"true
not_in
string
Check if value does not exist in listExample: "grape" not_in "apple,banana,orange"true
is_empty
unary
Check if value is empty, null, [], or {}Example: "" is_emptytrue
is_not_empty
unary
Check if value has contentExample: "Hello" is_not_emptytrue
is_true
unary
Check if value is truthy (true, 1, yes, y)Example: "true" is_truetrue
is_false
unary
Check if value is falsy (false, 0, no, n)Example: "false" is_falsetrue
gt
number
Greater than (numeric comparison with string fallback)Example: 10 gt 5true
lt
number
Less thanExample: 3 lt 7true
gte
number
Greater than or equalExample: 10 gte 10true
lte
number
Less than or equalExample: 5 lte 8true
Unary operators (is_empty, is_not_empty, is_true, is_false) don’t require a right operand.
Condition Logic:
All conditions must be true
if (condition1 && condition2 && condition3) {
  // Take this path
}
Use for: Strict validation, multiple requirement checks
Branching: Switch nodes support multiple branches evaluated in order:
  • IF: First condition evaluated
  • ELIF: Additional conditions (evaluated if previous failed)
  • ELSE: Default path if no conditions match
Example Use Cases:
  • Content moderation (check for inappropriate content)
  • User role routing (admin vs. user paths)
  • Error handling (check for error states)
  • A/B testing (route based on user segment)