Count of (quantifiable conditions)
Create an evaluation based on a count or tally of attributes that meet the criteria.In the Specify a Resource Attribute drop down, you have the option to select Use Number of Items in List. Selecting this option allows us to create an evaluation based on a count or tally of attributes that meet the criteria. When we select this option, you must select a resource and the attribute on that resource that are to be tallied when the rule executes.
This option can only be used in profiler and visibility rules.
Because the tally is made at the time the rule is triggered, it could produce different results at different times during the session if used on an application object or a current resource.
For example, we might profile a visitor's color preference as red by creating an evaluation that checks to see if the number of red items in the user's shopping cart is greater than 5. The rule syntax for this evaluation could be:
Count of (shoppingCart.item.color is red) is greater than 5Although we can make counts of any data type, the tally must be compared against a value or resource attribute that has a data type of number, decimal number, or integer.
Parent: Rule elements