Discuss Scratch
- Discussion Forums
- » Suggestions
- » NOT REJECTED: IF THEN FOREVER
- Hypersaurus
-
Scratcher
100+ posts
NOT REJECTED: IF THEN FOREVER
This block was in the Scratch 1.4 editor, and worked the same as putting an “if” block inside a “forever” loop. It was removed in Scratch 2.0 because many beginners found it to be confusing. The aforementioned workaround is evidently simple and more intuitive.How would an If then forever work? Well it's simple, if the statement inside the boolean is true, likeforever if <> then{However, an If then forever is NOT rejected because it acts different.
}::controlif <> then forever{as it would act diffrent
}:: control
if <(my variable)=(5)> then forever{
turn cw (12) degrees
}::controlit will repeat the code inside it forever, if it is false, likeif <not<(my variable) = [5]>> then forever{
turn cw (12) degrees
}:: controlit goes to any code under it, and like you expect if in another forever it can recheck itself when it is reached again.This is NOT rejected because this is a different block with a different function, and the order of which the block is worded explains it pretty clearly: If something is true, do forever.
There are work arounds but many blocks have it so do not give work arounds.
- scratchy_boy106
-
Scratcher
1000+ posts
NOT REJECTED: IF THEN FOREVER
if <...::grey> then
forever
end
end
- ScodexPerson
-
Scratcher
1000+ posts
NOT REJECTED: IF THEN FOREVER
This will have the same issue as the rejected ‘Forever if <>’ C block which is that it will be confusing for new programmers.
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
NOT REJECTED: IF THEN FOREVER
isn’t it just
not to mention some blocks are a standard in programming languages
edit:
I might be reading the op wrong but I don’t see any point for this block to be in the editor
repeat until <not <>>blocks with easy workarounds are in the editor because it’s designed for beginners and convenience
…
end
not to mention some blocks are a standard in programming languages
edit:
I might be reading the op wrong but I don’t see any point for this block to be in the editor
Last edited by gdfsgdfsgdfg (July 17, 2026 11:47:53)
- medians
-
Scratcher
1000+ posts
NOT REJECTED: IF THEN FOREVER
isn’t it justI think it's more like this:repeat until <not <>>blocks with easy workarounds are in the editor because it’s designed for beginners and convenience
…
end
not to mention some blocks are a standard in programming languages
edit:
I might be reading the op wrong but I don’t see any point for this block to be in the editor
if <bool::grey> thenThough I'm worried people might think this is like a repeat until loop like you did if this is what it's supposed to be
forever
code::grey
end
end
Last edited by medians (July 17, 2026 13:09:14)
- Za-Chary
-
Scratcher
1000+ posts
NOT REJECTED: IF THEN FOREVER
Suppose I run the following code:
Then, while this code is still running, I change “my variable” to 0. My question is, does the sprite stop turning or not?
If it does stop turning, then this is an easy workaround (and is in fact the same as that old “forever if” block:
If it doesn't stop turning, then this is an easy workaround:
In either case, the fact that I am asking this question should suggest that the name of this block is still confusing. Even if it acts differently, I think newer Scratchers would still find it confusing.
if <(my variable)=(5)> then forever{
turn cw (12) degrees
}::controlThen, while this code is still running, I change “my variable” to 0. My question is, does the sprite stop turning or not?
If it does stop turning, then this is an easy workaround (and is in fact the same as that old “forever if” block:
forever
if <(my variable)=(5)> then
turn cw (12) degrees
end
end
If it doesn't stop turning, then this is an easy workaround:
if <(my variable)=(5)> then
forever
turn cw (12) degrees
end
end
In either case, the fact that I am asking this question should suggest that the name of this block is still confusing. Even if it acts differently, I think newer Scratchers would still find it confusing.
- Paddle2See
-
Scratch Team
1000+ posts
NOT REJECTED: IF THEN FOREVER
I agree - I feel it is easier for beginners to keep separate actions in separate blocks.
- Discussion Forums
- » Suggestions
-
» NOT REJECTED: IF THEN FOREVER