Count Function

The Count function determines the number of nodes in all of the sets of nodes in parameters.

For recurring nodes, this function determines the actual number of occurrences.

This function accepts any source node as a parameter. This includes structure or choice nodes which you normally cannot map.

If you use literal numbers as parameters in this function, the numbers are considered one node and incremented by a count of one.

Parameter: input, input...

The sets of nodes to count. These can come from recurring or nonrecurring source nodes, the results of other functions, or values that you specify.

You cannot specify a default value (or constant) for the input parameters of this function but you can specify a variable with a default value and then pass that variable as an input parameter to this function.  For more information see Specifying Default Values for Functions that Allow Recurring Nodes as Input.   

Attention: In the Mapping Editor, if you chain together a recurring source node, a function that does not support recurring nodes, and then map that result to this function, during run time you might get an unexpected result.  For more information see Limitations in Combining Other Math Functions or Literals.

Returns: number

The total number of nodes in the parameters.




Feedback | Notices


Timestamp icon Last updated: Wednesday, February 17, 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/ref_Count.html