REPCOUNT return allways -1 when use in a dynamic statement.
For example:
to proca :cmd repeat 3 :cmd end
proca [print repcount] ; Don't work, print -1 -1 -1
But:
to proca repeat 3 [print repcount] end
proca ; OK, print 1 2 3
Log in to post a comment.