# Router Mediator

The Router mediator can be used to specify the routing of the message according to given conditions. This is very similar the Switch mediator. But unlike switch mediator which choose define routes based on matching different regular expression for the same xpath expression (like 'switch' operator in Java), the router mediator can be used to define routes to completely different expressions in a nested fashion. (like if-else-if operator in Java)

Figure 1: Router Mediator

The router mediator has the following configuration options.

- Continue after routing: (Yes/No), Whether to continue the routing if any of the child routes are executed. The default value is No.
- Number of clones: Show you the number of child routes that router mediator has. You can add child routes by clicking the 'Add Route' link in the right hand side of the text field.