Help Contents / Loops / repeatCount

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 


previous: repeat	next: forever
