Loop iteration counter

repcount

Returns current iteration number of a loop inne (the innermost loop in case of nested loops).

Example:

repeat 5 [print repcount]

Output:

1
2
3
4
5

See also:

Loops

Table of Content