Reference > Rule Languages > Business Action Language > BAL Constructs > there are more than <number> <objects>

Summary

Tests to see if there are more than a specified number of objects of a given type in the current data set or the specified collection.

Syntax

there are more than <number> <objects> [in <list>] [where <test>,*]

Description

Use this construct to determine if the current data set contains more than 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.

Example

The following condition tests if there are more than 10 customers with the gold category.

if
   there are at least 10 customers
      where the category of each customer is Gold,
then...

Related Concepts

Rule Conditions

Related Tasks

Creating Business Rules

Related Reference

if
in <list>
where <test>

Related Samples and Tutorials

Tutorial: Creating Business Rules