REPCOUNTThis operation is only meaningful within the instruction list of a REPEAT command. It outputs the number of repetitions that have been done, including the current one. That is, it outputs 1 the first time through, 2 the second time, and so on.
If two REPEAT commands are nested, REPCOUNT will output the repeat count if the innermost REPEAT.
REPEAT 3 [PRINT (LIST "This "is "iteration REPCOUNT)]
This is iteration 1
This is iteration 2
This is iteration 3