Entering XQuery Comparison Expressions Using the Builder Option
Before you begin
These instructions assume you are creating or editing an XQuery conditional expression in the XQuery Condition Editor, as described in
Creating and Editing Inline XQuery and XPath Expressions.
To enter an XQuery comparison expression:
- In the XQuery Condition Editor, select Builder (located under the workspace button bar), if it is not already selected. option.
- In the Expression Builder box, select Comparison Expression if it is not already selected.
- In the Operand field, enter a context variable, namespace definition, or XQuery function.
To build the operand, you can paste XQuery functions from the XQuery Functions palette and namespaces from the Namespace Definitions palette. See
step 3 and
step 4 in
Building Expressions in the Editor Workspace Text Fields.
- From the Operator list, select a comparison operator.
- In the Value field, enter text or enter a context variable.
You must enter text in quotations-for example, "true"
is valid; true
is not.
- Click Add. The text you entered is displayed in the Expressions pane.
- Repeat steps 3-6 to build additional conditions. Each condition is added to the end of the list of conditions.
Consider the following when using multiple conditions:
- When you build additional expressions, make sure to select the And or the Or options in the Conjunction field.
- You can select a condition and click the
Up arrow to move it up in the list of conditions or click the
Down arrow to move it down the list of conditions. You can also click the
Edit icon to update a condition, or click the
Delete icon to delete it.
- Unary expressions may be intermixed with Comparison expressions in the overall definition of a condition.
- Optionally, do either or both of the following:
- Click Validate. A message is displayed if the expression is validated successfully.
- Click Test to test the expression. See
Performing XQuery Testing.
- Click Save to close the editor and insert the expression in the action.
After you finish
Continue configuring the action, as described in
Adding and Editing Actions in Message Flows.