Discuss Scratch

securitytower
Scratcher
13 posts

Getting how many times a loop has ran

(loop index ::control)
minniesworld
Scratcher
500+ posts

Getting how many times a loop has ran

forever
change [times run v] by (1)
end
(times run) // counter
securitytower
Scratcher
13 posts

Getting how many times a loop has ran

set [loop index v] to [1]
repeat (amount)
...
change [loop index v] by [1]
end


(loop index) // counter
securitytower
Scratcher
13 posts

Getting how many times a loop has ran

say [Hi!]
hacktronics
Scratcher
100+ posts

Getting how many times a loop has ran

The loop index is cumbersome, that's why we use count in CodeSkool.
count (VAR) from (0) to (4) in steps of (1)

Last edited by hacktronics (June 10, 2025 02:56:17)

securitytower
Scratcher
13 posts

Getting how many times a loop has ran

It is here.

Powered by DjangoBB