| Reference > Rule Languages > Business Action Language > BAL Constructs > there are at least <number> <objects> |
there are at least <number> <objects> |
PREVIOUS NEXT |
Tests to see if there are at least a specified number of objects of a given type in the current data set or the specified collection.
there are at least <number> <objects> [in <list>] [where <test>,*]
Use this construct to determine if the current data set contains at least the specified number of occurrences of a particular object.
Use the optional 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.
The following condition tests if there are at least 10 of gold customers.
if
there are at least 10 customers
where the category of each customer is gold
then...
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |