IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Defining and transforming data > Transforming data > Transforming data using XML maps > Functions and transforms > IBM supplied transform types
XML transform: If, Else if, and Else transforms
If, Else if, and Else operate as a group of conditional transforms that allow you to control the flow of the mapping by setting conditions. 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.
The conditional transforms (If, Else if, and Else) evaluate the condition that must be satisfied in order of data transformation to occur. The conditional transforms do not contain any transformation logic. If the condition is satisfied, the nested transform that is contained in the conditional transform will be run.
- For each conditional transform in the group, enter a condition in the Conditions tab in the Properties view. The condition must be in the form of an XPath expression.
- To change the order in which the conditions are evaluated, select the conditional group and click the Order tab and use the up and down arrows.
- Double-click the conditional transform (for example, if) to create the mapping that will run for the condition.
The elements in the nested map must be mapped in order for the transform to run.