A Router statement uses conditions to evaluate each source element and process it based on the input value.
A Router statement contains one or more Option statements and one Default statement. When the hierarchical mapper processes a source element, it runs only the Option statement with a condition that matches the input value. If none of the conditions match the input value, the hierarchical mapper runs the Default statement.
For example, you're hiring employees for your organization and you want to map their skills to the compensation scores in their employee profiles. You can use a Router statement with Option statements that evaluate whether a candidate has Skill A or Skill B and assign the appropriate compensation score. If a candidate has neither skill, a Default statement runs to assign the compensation score.
The following image shows the Router statement and the nested Option and Default statements: