A condition is an attribute which you can apply to XML elements. You can build simple or complex condition expressions and apply them to your data, then use the condition to filter the data for your specific needs when viewing or publishing.
About this task
You build a condition expression using condition names and condition values that have been defined by your publication or project manager. Condition information in topics is stored in the repository and is handled using the
Content Manager-specific
ishcondition attribute.
Note: It is important to discuss the condition expressions for your publications with an information architect before you build and use them to ensure consistency among authors. It is also important that you test them to ensure the desired output is produced.
Procedure
- With the object checked-out of the repository and displayed in your authoring tool, click inside an XML element.
- Click
The Condition Builder window displays.
- Click the Tree tab to access the condition values established for the publication.
- Traverse the tree to find the condition to set.
- Compose the condition by selecting the condition and a value or when necessary, enter a value.
- Click Add>>.
If the element already had a condition, the condition is copied to Condition Builder where you can extend the condition or overwrite it.
The condition is added under the Conditions tab as equal to.
- To build complex conditions (optional):
- After adding conditions, select two or more conditions from the conditions list.
- Select the desired logical operator by clicking the AND or OR button.
Any condition in the conditions list can be combined with other conditions in the list to create more complex condition combinations using the Boolean AND or OR operators.
- Close the window by clicking:
| Option | Description |
|---|
| OK | Applies the selected condition to the data between the tags where your cursor is located .
Note: The condition is inserted in the ishcondition attribute of the element in which you placed the cursor.
|
|---|
| Close | Saves the condition without applying it to the data. |
|---|