Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Getting how many times a loop has ran
- minniesworld
-
500+ posts
Getting how many times a loop has ran
forever
change [times run v] by (1)
end
(times run) // counter
- securitytower
-
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
- hacktronics
-
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)
count (VAR) from (0) to (4) in steps of (1)
Last edited by hacktronics (June 10, 2025 02:56:17)
- Discussion Forums
- » Developing Scratch Extensions
-
» Getting how many times a loop has ran