Filtering Structure Elements and Data

To filter an element, you can add a condition written in OTScript language on text data, loop, or structure elements. This code must return a Boolean value. For example, you can reduce the number of elements provided by a loop by keeping only the requirement specifications.


Before you begin: A template with a loop.
See Also
Formatting, Filtering, and Sorting Options
OTScript Language
  1. Select the loop.
  2. In the Condition field within the Properties tab, enter an OTScript instruction returning a Boolean expression.

    An example of a condition is: EACH ISA `Requirement Specification`. This condition keeps only elements with its class name equals to Requirement Specification.

    Tips:
    • You can drop an element from the Data tab into the Condition field to directly use its internal name in the OTScript condition.
    • If the condition contains an error, an error icon appears on the loop, and the loop tooltip contains its details.

    The condition is applied during the report file generation.