### Adding and Configuring If-Then Actions in Message Flows

Use an if-then action to perform an action or a set of actions conditionally, based on the Boolean result of an XQuery expression.

Before you begin

Display the message flow for the desired proxy service. See Constructing Proxy Service Message Flows.

To add an if-then action

1. In the Message Flow Design Palette, do one of the following:

- For an if-then action in a route node, open the Route Actions > Flow Control list, if it is not already open.
- For an if-then action in a stage node, open the Stage Actions > Flow Control list, if it is not already open.

2. Drag the if-then action to the route node or to the desired stage action in the message flow.

To configure the if-then action

1. In the Message Flow Editor, click each if condition and else-if condition contained by the if-then action, and define the conditions in the Condition Editor, as described in If-Then Action Properties.