Expression Language
Also available as:
PDF

count

Description: Aggregate function that counts the number of non-null, non-false values returned by the allAttributes, allMatchingAttributes, and allDelineatedValues. This function may be used only in conjunction with the allAttributes, allMatchingAttributes, and allDelineatedValues functions.

Subject Type: Any

Arguments: No arguments

Return Type: Number

Examples: Given that the "abc" attribute contains the value "hello world", "xyz" contains "good bye world", and "number_list" contains "1,2,3,4,5" consider the following examples:

Table 1.27. Table 27. count Examples

Expression

Value

${allMatchingAttributes("[ax].*"):substringBefore(""):count()}

2

${allAttributes("abc", "xyz"):contains("world"):count()}

1

${allDelineatedValues(${number_list}, ","):count()}

5

${allAttributes("abc", "non-existent-attr", "xyz"):count()}

2

${allMatchingAttributes(".*"):length():gt(10):count()}

2