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 returns 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
Data, Structure Elements, and Instructions
OTScript Language
  1. Select the loop.
  2. In the Condition box of the Properties tab, enter an OTScript instruction returning a Boolean expression.

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

    Tip: 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.