| Reference > Rule Languages > Business Action Language > BAL Constructs > there is at most one <object> |
there is at most one <object> |
PREVIOUS NEXT |
Tests to see if there is no more than one object of a given type in the current data set or the specified collection.
there is at most one <object> [in <list>] [where <test>,*]
Use this construct to determine if the current data set contains zero or one 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 is at most one Gold customer in the set of objects provided to the rule engine for execution.
if
there is at most one customer
where the category of this customer is Gold,
then...
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |