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.
In the Condition field within the
Propertiestab, 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 Datatab
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.