why was for each I in () removed

id: 751037

category: Questions about Scratch

posts: 5

Malicondi Malicondi loading
Why was this block
for each [i v] in (){

} ::control
removed from the editor, but still accessible from editing json, or from older projects? Just wondering why, and I'm not sure if it was confusing or for some other reason.
-Expo -Expo loading

Malicondi wrote:

Why was this block
for each [i v] in (){

} ::control
removed from the editor, but still accessible from editing json, or from older projects? Just wondering why, and I'm not sure if it was confusing or for some other reason.
Out of curiosity, which projects do you still see them in?
Malicondi Malicondi loading

-Expo wrote:

Out of curiosity, which projects do you still see them in?
I have it in some of the projects on my test account, and I have seen it in this project. (which I now realize isn't really that old)
Checking the wiki, it appears it was removed hidden because the dropdown was buggy. I can only guess its not back in because there's a simple workaround.
set [i v] to [0]
repeat (10)
change [i v] by (1)
end

The “for each () in ()” still functions perfectly well, it's just hidden from the editor.
-stxllxr -stxllxr loading

CHEEZ_ITZ_12oz wrote:

Checking the wiki, it appears it was removed hidden because the dropdown was buggy. I can only guess its not back in because there's a simple workaround.
set [i v] to [0]
repeat (10)
change [i v] by (1)
end

The “for each () in ()” still functions perfectly well, it's just hidden from the editor.
It has a couple other special functions, such as if you change the variable inside of the for loop, the variable will set back to its last value. For example, of “i” was 5, and you change it by 7 in the next loop, it will go back to 6.