The If, Else if, and Else transform enables you to control the flow of the mapping by setting conditions.
The If, Else if and Else transform operates as a group of conditional transforms. The condition is applied to the input element of the conditional transform. If the condition is satisfied, the transform that is nested within the conditional transform is run.
You can define a condition expression that is an XPath expression or a call to a static method on an imported Java™ class. You can also create a complex expression comprising, XPath, Java and extension functions such as iib:getUserDefinedProperty("propertyname").
The elements in the nested map must be mapped in order for the transform to run.