# Switch Mediator

The switch mediator will evaluate the given source xpath expression into its string value, and match it against the given regular expressions. If the specified cases does not match and a default case exists, it will be executed.

Switch Mediator

Here are the options to configure the Switch Mediator.

- Source XPath: Here you can specify the source xpath to be evaluated.
- Number of cases: The number of cases specified. You can add cases by clicking the "Add Case" link.
- Specify default case: The link to add the default case. (This case is to execute when all the other cases are failed.)