[CountIf]

Takes one parameter, TestCondition

Description:

 

Given the test criteria, the number of records in the Work Query that evaluate as True will returned. This command is not available as an Attribute, it is only available in MOX due to the fact it operates on the Work Query.

The first part of the Test must be a field name in the current scope, the next item after a space must be a valid comparison, the final item may be a field name or a string literal.

List of Comparisons:

Example:

[New] Count [CountIf] Field.Name = "Condition"
Bills [CountIf] Firstname = "Bill"
EnsureFields "Error"
ErrorCount [CountIf] Error