Online Eiffel Documentation
EiffelStudio

Managing criterion

When defining a metric you can choose a complex criterion, made of other criteria and combined with boolean operators (and/or/not).

To build such a complex criterion, you first need to enter a criterion in the list. Then select this criterion and choose either the and operator (the inverted V button) or the or operator (the V button).

Tip: To obtain the negation of a criterion, simply type not in front of it. The icon of the criterion will change accordingly.

Once this is done, the tool automatically insert a new row with the selected operator where the criterion was, and inserts the criterion as sub-element.

Now you can chose the other criterion to comple the combination. The result of your combination can be seen in the Expression text field.

You can combine more than one operator to build complex boolean expressions. Also if the order in which criteria appear is not satisfactory you can either use pick and drop or simpy the up/down button to reorder them.

Note: The operators are not limited to 2 criteria, they can be more.

See also
Defining new metrics