| Reference > Rule Language > Conditions > there are more than <a number> |
there are more than <a number> |
PREVIOUS NEXT |
You can use the there are more than <a number> construct to check if the number of objects of a specific type is greater than a specific value. <a number> can be a sentence, not only an integer constant, for example:
if there are more than 'system capacity' Customers
An optional where construct can be used to match objects against predicates prior to test if such an object exists. For more information, see The where Construct.
You can also specify where the rule engine will find the matching objects. For more information, see The in <collection> Construct.
This example shows how to test if the number of gold customer is greater than 3.
if
there are more than 3 Customers
where the category of this Customer is gold
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |