Skip to main content

How If/Else

Add conditional logic to create different paths in your workflow. Users are routed to different actions based on whether they meet specific criteria, allowing for personalized automation flows.

Configuration

Inputs

enum
default:"AND"
Determines how multiple conditions are evaluated together. Choose “AND” when all conditions must be true, or “OR” when any condition can be true.Options:
  • AND - All conditions must be met (default)
  • OR - Any condition can be met
object
required
Define the criteria that determines which path users follow. Supports complex boolean logic using user data, event properties, and workflow context.

Outputs

boolean
required
Whether the condition was met. Users with true results follow the “Yes” path, while false results follow the “No” path.

Use Cases

User Tier-Based Actions
Engagement Level Routing
Geographic Personalization
Payment Status Handling

Best Practices

Clear Condition Logic
  • Use specific, measurable conditions
  • Test conditions with sample data before deploying
  • Document complex conditions for team understanding
Balanced Path Design
  • Ensure both true and false paths provide value
  • Avoid overly complex nested conditions
  • Consider the user experience for each path
Performance Considerations
  • Use efficient conditions that evaluate quickly
  • Cache frequently accessed user properties
  • Monitor condition evaluation performance in workflows