Saturday, February 23, 2008

Exploring the Aggregate - count function

count




This returns the number of nodes/rows within the scope of the 'in-context'

Basically counts how many repeating elements have gone by it.

To illustrate it, lets create a text file count.txt and add it with simple csv processing, then add a count function then connect the Field1 to the nodes/rows. Then create an out text with simple csv processing and connect the result to the Field1 of the out text.

count.txt contains (9 1's on separate lines)

1
1
1
1
1
1
1
1
1

Which will look something like this.




As you might imagine, if you hit the output tab you will get 9 (the number of repeating rows that came through the 'counter' box)



No comments: