| Reference > Rule Languages > Business Action Language > BAL Constructs > the number of <objects> |
the number of <objects> |
PREVIOUS NEXT |
Returns the number of objects in the current data set or in the specified collection.
the number of <objects> [in <list>] [where <test>,*]
The the number of <objects> counts the number of objects of the specified type and returns the total as a number. You can use the optional in <list> clause to count the objects in a specific list. You can use one or more optional where clauses to apply additional conditions to the objects that are included in the returned count.
This construct cannot be used in the definitions part of the rule.
The following condition is met if there are at least 6 vehicles:
if
the number of vehicles is more than 5
then...
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |