there are more than (number) (type)
This construct tests whether there are more than a specified number of objects of a given
type.
Purpose
You use this construct to determine whether the specified collection contains more than the specified number of occurrences of a particular object.
Syntax
there are more than <number> <type> [in <list>] [where <test>,]
Description
Use the in clause to apply the test to a specific
collection of objects. Use one or more optional where
clauses to filter the objects to be counted with one or more conditions.
This construct can only be used in the if part of a
rule.
Note:
The <number> argument cannot be a BigDecimal or
a BigInteger. Although the language parser does not generate an error, an error may be
generated.
Example
The following condition tests if there are more than 10 customers with the Gold category.
if
there are more than 10 customers in the customers of bank
where the category of each customer is Gold,
then...