Discuss Scratch
- Discussion Forums
- » Suggestions
- » Make it possible to change if to if-else blocks by right-clicking
- -iviedwall-
-
500+ posts
Make it possible to change if to if-else blocks by right-clicking
Please do not necropost -_- support this would be very helpful for so many people (even if SA has this feature)
- k0d3rrr
-
1000+ posts
Make it possible to change if to if-else blocks by right-clicking
Necroposting does not exist in the Suggestions forum.Please do not necropost -_- support this would be very helpful for so many people (even if SA has this feature)
It does not count as a necropost if it is constructive, and if it adds to the suggestion.
- tympanicbock61
-
12 posts
Make it possible to change if to if-else blocks by right-clicking
support
- HeliosTheSuperior
-
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
-
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
-
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
-
1000+ posts
Make it possible to change if to if-else blocks by right-clicking
But, this is much more convenient and helps with extremely large scripts. I don't understand why you'd be its not that hard to just swap them…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
-
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
-
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?
Why should you have to drag out all the code in a giant if statement just to add “else” logic?
- cookieclickerer33
-
1000+ posts
Make it possible to change if to if-else blocks by right-clicking
I feel like there should just be the ability to add more else to an if block and remove the if else block entirely 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.
- 8bitrkt
-
500+ posts
Make it possible to change if to if-else blocks by right-clicking
that would probably break a LOT of projects if you got rid of the ifelse.I feel like there should just be the ability to add more else to an if block and remove the if else block entirely 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.
- CoconutGator
-
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
-
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
-
100+ posts
Make it possible to change if to if-else blocks by right-clicking
Support.
This is a better idea
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
-
1000+ posts
Make it possible to change if to if-else blocks by right-clicking
Yes, using external usercripts
- Discussion Forums
- » Suggestions
-
» Make it possible to change if to if-else blocks by right-clicking