Skip to main content
The Condition element is used to create decision points in a flow, allowing paths to diverge based on specific conditions. For example, you can implement logic such as:
“If Score is greater than 10, follow this path. Otherwise, follow another path.”

How Conditions Work

A condition element evaluates one or more comparisons, which can be combined using logical operators AND or OR:
  • AND: All comparisons must evaluate to true for the condition to pass.
  • OR: At least one comparison must evaluate to true for the condition to pass.
Each comparison checks a value against a specific operator.
Release0.com - Condition Agent elements

Operators Available and Their Behavior

Regex Examples

Regex patterns can help match complex string conditions:
  • Exact Match: /^hello$/ matches the string "hello", but not "hello world".
  • Contains Substring: /hello/ matches any string containing "hello" (e.g., "hello world").
  • Case-Insensitive Match: /hello/i matches "Hello" or "HELLO".
  • Digit Check: /[0-9]+/ matches strings with one or more digits, such as "123" or "abc123".
Note: Regex patterns must start and end with / to be valid.

Example Use Case

If you want to route a flow based on the user’s score, you can define:
  1. Condition: Score > 20
    Path A: “High Score Route”
    Path B: “Low Score Route”
  2. Condition: User Tags contains "premium"
    Path A: “Premium Features Route”
    Path B: “Basic Features Route”
This enables dynamic and personalized user interactions based on predefined logic.