repeatCount

HC Loops repeatCount
repeat repCount

repeatCount
repCount


outputs the repetition count of the innermost current repeat, starting from 1. If no REPEAT is active, outputs 0.

Example:

show repCount	;0
repeat 4
[	print repCount	;1 2 3 4
]
show repCount	;0

References:

repeat repCount