Building a condition expression

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.

Procedure

  1. With the object checked-out of the repository and displayed in your authoring tool, click inside an XML element.
  2. Click Content Manager > Conditional text > Set Condition...
    The Condition Builder window displays.
  3. Click the Tree tab to access the condition values established for the publication.
  4. Traverse the tree to find the condition to set.
  5. Compose the condition by selecting the condition and a value or when necessary, enter a value.
  6. 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.
  7. To build complex conditions (optional):
    1. After adding conditions, select two or more conditions from the conditions list.
    2. 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.
  8. Close the window by clicking:
    OptionDescription
    OKApplies the selected condition to the data between the tags where your cursor is located .
    CloseSaves the condition without applying it to the data.