skip to main content
Corticon Studio: Rule Modeling Guide : Rule writing techniques and logical equivalents : Qualifying rules with ranges and lists : Using ranges and lists in conditions and filters : Value ranges in condition and filter expressions
 

Try Corticon Now
Value ranges in condition and filter expressions
You can use value range expressions in conditions or filters.

Syntax of value ranges in conditions and filter rows

When you use the in operator to specify a range of values, you can specify the range in a several ways. The following illustration shows how you can encapsulate a range:
Figure 68. Rulesheet Filters showing ways to encapsulate a range
Filter 8 does no encapsulation, Filter 9 uses braces, and Filter 10 uses parentheses. All these are valid but cannot be mixed. However, the use of parentheses and square brackets can be mixed to provide additional capability. The bracket on either side expresses the value on that side passes the test. In Filters 10 through 13, the brackets indicate the permutations of this capability. It is a good practice to routinely uses parentheses for exclusionary ranges.

Examples of value ranges in filter rows

The following value ranges show how the Corticon data types can be used as Filter expressions.
Figure 69. Rulesheet filters showing the syntax of ranges for each data type
Notice that ranges are always from..to. The examples show that negative decimal and integer values can be used, and that uppercase and lowercase characters are filtered separately.