Counts the number of iterations at a record level performed by a Batch task or a Rich Client non-interactive task.
Syntax:
Counter(generation)
Parameters:
generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.
Returns:
Number
Example:
Placed as an End Task condition, the expression Counter(0)=5 ends the current task (task 0) after five iterations on the record level.