Discuss Scratch

-iviedwall-
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

Conduit7 wrote:

support this would be very helpful for so many people (even if SA has this feature)
Please do not necropost -_-
k0d3rrr
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

-iviedwall- wrote:

Conduit7 wrote:

support this would be very helpful for so many people (even if SA has this feature)
Please do not necropost -_-
Necroposting does not exist in the Suggestions forum.
It does not count as a necropost if it is constructive, and if it adds to the suggestion.
tympanicbock61
Scratcher
12 posts

Make it possible to change if to if-else blocks by right-clicking

support
HeliosTheSuperior
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

I'm surprised this isn't already a feature.
CoconutGator
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

I don't see why this isn't already implemented. I've had this issue multiple times, and while it isn't a big one, it would still be nice to be able to swap between the two blocks quickly.
AngeI404
Scratcher
25 posts

Make it possible to change if to if-else blocks by right-clicking

Support. I find it very annoying when I drag the if then block instead of the if then else block when I'm watching a tutorial.
MeIzAwezomeDede
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

baconlover5555 wrote:

its not that hard to just swap them…
But, this is much more convenient and helps with extremely large scripts. I don't understand why you'd be against making something easier

Also a specific addon I can't mention already has this implemented, and I find it helpful there, so support for having it added to vanilla Scratch
DifferentDance8
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

Support! I find this incredibly useful in nono word, so IDK why this wouldn't be implemented in vanilla.
ajskateboarder
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

There is no reason to not support the ability to refactor code. It's so common in text editors to help ease pain among developers, so why can't Scratch use something like this? I guess it's a rather subtle refactor, but it can seriously increase productivity in Scratch projects.

Why should you have to drag out all the code in a giant if statement just to add “else” logic?
cookieclickerer33
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

awesome-llama wrote:

If you right-click an if block, you should be able to select an option to change to if-else blocks.
Sometimes I drag an if block and put scripts into it, then notice it should have been an if-else block instead. Now I have to drag the script out, and grab an if-else block.
Q. What happens when an if else changes to an if?
A. If there is a script in the else part of the block when it is converted from if-else to if, the script could just move out.

Q. But you can manually drag the blocks from the pallette instead.
A. It is more efficient to use this idea, saving time and having less chance to ruin/misplace blocks in a script you are moving.
I feel like there should just be the ability to add more else to an if block and remove the if else block entirely
8bitrkt
Scratcher
500+ posts

Make it possible to change if to if-else blocks by right-clicking

cookieclickerer33 wrote:

awesome-llama wrote:

If you right-click an if block, you should be able to select an option to change to if-else blocks.
Sometimes I drag an if block and put scripts into it, then notice it should have been an if-else block instead. Now I have to drag the script out, and grab an if-else block.
Q. What happens when an if else changes to an if?
A. If there is a script in the else part of the block when it is converted from if-else to if, the script could just move out.

Q. But you can manually drag the blocks from the pallette instead.
A. It is more efficient to use this idea, saving time and having less chance to ruin/misplace blocks in a script you are moving.
I feel like there should just be the ability to add more else to an if block and remove the if else block entirely
that would probably break a LOT of projects if you got rid of the ifelse.
CoconutGator
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

bump i think this is still an interesting topic at the very least and i want to know more thoughts on it
PkmnQ
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

I think this is a dupe of a more general suggestion, let me find it
Little_Mittle12345
Scratcher
100+ posts

Make it possible to change if to if-else blocks by right-clicking

Support.
This is a better idea
if <> then @addInput {}:: control
if <> then @delInput{
}else{
}:: control


Last edited by Little_Mittle12345 (Nov. 14, 2022 12:29:02)

jmdzti_0-0
Scratcher
1000+ posts

Make it possible to change if to if-else blocks by right-clicking

Yes, using external usercripts

Powered by DjangoBB