How to design conditional branches with routers on Make
Conditional branches in Make are created using Router modules that split scenario execution into multiple paths based on defined conditions. Each route can have specific filters and conditions that determine when data flows through that particular branch.
Prerequisites
- Basic familiarity with Make scenarios
- Understanding of data flow concepts
- Knowledge of filter conditions
- Experience with Make modules and connections
Step-by-Step Instructions
Add a Router module to your scenario
Configure the first route condition
Add modules to the first branch
Create additional conditional routes
Configure the fallback route
Test your conditional branches
Optimize and refine conditions
Common Issues & Troubleshooting
Data not flowing through any routes
Check that your filter conditions are correctly configured and that the data format matches your expected values. Verify that field mappings are pointing to the correct data from previous modules.
Multiple routes executing when only one should
Review your route conditions for overlapping logic. Make conditions more specific by adding additional AND rules or reorder routes so more specific conditions come before general ones.
Router showing incomplete executions
Add a fallback route without filters to catch any data that doesn't match your conditional routes. Check the Incomplete executions log to see what data is causing issues.
Route conditions not evaluating correctly
Verify that data types match between your condition values. Use Functions like toString() or parseNumber() to convert data types before comparison in your filter conditions.