Comparison operators
- Last Updated: June 28, 2022
- 2 minute read
- Corticon
- Version 7.2
- Documentation
You define rule conditions by specifying a Vocabulary term in a conditions row and entering a value in a corresponding rule column cell. When you do it, the condition automatically assumes the equality = operator.
For example, when you specify Aircraft.aircraftType in a
cell in the Conditions pane and enter 747 in a corresponding rule
column cell, you define the condition Aircraft.aircraftType = '747'.
However, as you model rules, you may require different types of operators.
When you specify a condition that checks if an attribute value is greater than or less than
a certain value—for example, cargo volume > 1000 or cargo
weight < 100000—use a comparison operator from the library of rule operators
that Corticon provides.
The types of comparison operators that you can use in a condition depend on
the data type of the attributes in the condition. For instance, for an Integer data type,
you can use operators such as >, <,
>=, and <=. To check which operators are
applicable for each data type, refer to the Attribute Operators category in the
Rule Operators view in Corticon Studio.
You can use a comparison operator in a rule by either:
- Double-clicking the rule column cell, and then entering the operator followed by the value.
- Dragging the operator to the rule column cell, and then entering the operator followed by the value.