COUNTIF ER function

The COUNTIF function returns an Integer value that represents the number of format elements that was collected when the format elements were used to generate an outbound document during the format run, and that satisfies the specified condition. The condition consists of a key range and a key value.

Syntax

COUNTIF (condition range, condition value)

Arguments

condition range: String

A value that is returned by the expression that has been configured in the Collected data key name property of an Electronic reporting (ER) format component.

condition value: String

A value that is returned by the expression that has been configured in the Collected data key value property of an ER format component.

Return values

Integer

The resulting numeric value.

Usage notes

The Collected data key name and Collected data key value properties can be configured for either the Sequence component or the XML Element component of an ER format that resides under the Common\File component where the Collect output details option is turned on.

This function returns a 0 (zero) value when the Collect output details option of the current Common\File component is turned off.

In the condition range argument, the wildcard character "*" can be used to represent any multiple characters.

In the condition value argument, the wildcard character "*" can be used to represent any multiple characters.

Example

For more information about how to use this function, see the ER Use data of format output for counting and summing task guide, which is part of the Acquire/Develop IT service/solution components business process.

Additional resources

Data collection functions