Discuss Scratch

fdreerf
Scratcher
1000+ posts

Elif (else-if) block

Greg8128 wrote:

IMO the most reasonable way to implement this would be to add an ‘else if’ block that can only be attached beneath an ‘if’ block or another ‘else if’ block. Likewise, there could be an ‘else’ block that can only be attached beneath an ‘if’ block or an ‘else if’ block.
I don't think that's the most reasonable as a block that can only be attached to another block would be very confusing, and kind of ugly.
if <...> then {
} ::control
else if <...> {
} ::control
else if <...> {
} ::control

Last edited by fdreerf (Nov. 11, 2020 00:01:46)


Hyped for MS-DOS 11.0
Greg8128
Scratcher
500+ posts

Elif (else-if) block

I imagine that it could have a differently shaped connector, kind of like how booleans blocks and number/string value blocks have different shapes. I would draw it but I'm bad at art and uploading images to scratch is a bit of a hassle.

My best projects:

gosoccerboy5
Scratcher
1000+ posts

Elif (else-if) block

I'm not sure if this is a dupe of something else, but I support because this would save a bit of mundane dragging that no one wants to do.

Also, I'm aware I'm necroing

portalpower
Scratcher
1000+ posts

Elif (else-if) block

gosoccerboy5 wrote:

Also, I'm aware I'm necroing
it doesn't count as necroposting because it's one the suggestions forum and it's being constructive

thank you for reading my post and have a nice day!
shift+down to view my signature



















idk what to put here.
IndianRuby718
Scratcher
100+ posts

Elif (else-if) block

gosoccerboy5 wrote:

I'm not sure if this is a dupe
indeed it is [now seems to be merged]

Last edited by IndianRuby718 (Dec. 10, 2020 03:05:34)


So… I didn't update my signature for over a year XP But… I left the forums, and I'm not coming back anytime soon
(and I'm not updating my signature)


Both stickied Suggestions Directories currently have 138 replies.
Only fdreerf can break the equilibrium.

________________




Za-chary wrote:

I get more frustrated with people telling me about “mass reporting” than I do about “mass reporting” itself.
source
good luck digging up the original reply in the comments
ctrl+f exists


https://scratch.mit.edu/discuss/post/6961734/


Bug with the color effect I would really like to see fixed






EEEEEEE   DDDDDD    IIIIIIII  TTTTTTTT           NNN    NN     OOOOO
EE DD DD II TT :: NNNN NN OO OO
EEEEEEE DD DD II TT NN NN NN OO OO
EE DD DD II TT :: NN NN NN OO OO
EE DD DD II TT NN NNNN OO OO
EEEEEEE DDDDDD IIIIIIII TT NN NNN OOOOO
Hand-done.

< :: extension>
< :: custom-arg>
< :: motion>



Don't click this link…
Yeetoburro1
Scratcher
1000+ posts

Elif (else-if) block

DaSpudLord wrote:

No support,stacking if-else blocks is really easy, and this might confuse new scratchers.
apparently according to this guy, a stick on the road could confuse a new scratcher
new scratchers arent dumb, and that's not a reason to no-support

Anyway-
Support, I use this in python, I see no reason why not to have it on scratch.

Last edited by Yeetoburro1 (Dec. 1, 2020 05:04:11)


arvepro3579
Scratcher
100+ posts

Elif (else-if) block

No support. The workaround doesn't take long, and you could put the small blocks in other places than if blocks.

Not on scratch very often
Vaibhs11
Scratcher
1000+ posts

Elif (else-if) block

No support.
The workaround is super easy
Delta135
Scratcher
100+ posts

Elif (else-if) block

hi, i support!

Vaibhs11
Scratcher
1000+ posts

Elif (else-if) block

Delta135 wrote:

hi, i support!
please tell why.
REZ_GAMER
Scratcher
3 posts

Elif (else-if) block

Here is how you can make your own else if block
if <What ever statement"> then 

WHAT EVER TO BE RUN

else
if <WHAT EVER ELSE IF> then



else
if <CoONTINUE ADDING IF ELSE IN ELSE> then
NOW I AM GOING TO STOP HERE SO I ADDED AND IF BLOCK ONLY
end
end

end
end
REZ_GAMER
Scratcher
3 posts

Elif (else-if) block

when green flag clicked
if <I don't understand> then
Ask @REZ_GAMER FOR HELP!
Rendangbike2
Scratcher
1000+ posts

Elif (else-if) block

Support! Stacking 2 to 4 else blocks is okay but what about 10? Too much for me. That's why I support elif blocks and also it's used in almost every programming language and why not scratch?




WindOctahedron
Scratcher
1000+ posts

Elif (else-if) block

fdreerf wrote:

Greg8128 wrote:

IMO the most reasonable way to implement this would be to add an ‘else if’ block that can only be attached beneath an ‘if’ block or another ‘else if’ block. Likewise, there could be an ‘else’ block that can only be attached beneath an ‘if’ block or an ‘else if’ block.
I don't think that's the most reasonable as a block that can only be attached to another block would be very confusing, and kind of ugly.
if <...> then {
} ::control
else if <...> {
} ::control
else if <...> {
} ::control
It is also a bit ambiguous. Would it be:
if <...> then 

else
if <...> then

else
if <...> then

end
end
end
Or:
if <...> then  

else
if <...> then

end
if <...> then

end
end

Last edited by WindOctahedron (Feb. 2, 2021 10:14:08)


The message above may contain wrong information, rude remarks, or something embarrassing to my current self. In this case, please ignore it and remember that I likely wrote it back when I didn't know what “respect” truly meant. I really hate thinking about it again.
dertermenter
Scratcher
1000+ posts

Elif (else-if) block

No support, I think stacking else if blvoks is less confusing


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
dertermenter
Scratcher
1000+ posts

Elif (else-if) block

WindOctahedron wrote:

fdreerf wrote:

Greg8128 wrote:

IMO the most reasonable way to implement this would be to add an ‘else if’ block that can only be attached beneath an ‘if’ block or another ‘else if’ block. Likewise, there could be an ‘else’ block that can only be attached beneath an ‘if’ block or an ‘else if’ block.
I don't think that's the most reasonable as a block that can only be attached to another block would be very confusing, and kind of ugly.
if <...> then {
} ::control
else if <...> {
} ::control
else if <...> {
} ::control
It is also a bit ambiguous. Would it be:
if <...> then 

else
if <...> then

else
if <...> then

end
end
end
Or:
if <...> then  

else
if <...> then

end
if <...> then

end
end
I was thinking
if <> then 



else




elif

end


The2000 wrote:

All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.

dertermenter wrote:

April Fools Day on the forums has been a repeated privilege, not an expectation
the2000
Scratcher
1000+ posts

Elif (else-if) block

Eh, I'm not sure. On one hand it would introduce an unnecessary(?) new mechanic to Scratch's design, but on the other hand stacking a bunch of if/else blocks as you currently have to is kind of annoying when you do a lot of them.

Rendangbike2
Scratcher
1000+ posts

Elif (else-if) block

Bump




Inkay1954
Scratcher
75 posts

Elif (else-if) block

I feel like this may be outdated, but I'm here anyways. Because I made a similar topic not knowing this existed, so I approve. I hope this comes real!
dogsmakemehappy
Scratcher
1000+ posts

Elif (else-if) block

The workaround:
if <...> then 
... // if the first condition is met, then this would run
else
if <...> then // this is now acting as this else if block
...
end
end
And so I think that this block is going to be somewhat pointless, as the workaround is so easy.

Use SHS (Shiny Hunting Simulator)
a realistic shiny pokemon hunting simulator. to use, go here.
I am Dogsmakemehappy (Github) A
Dog Lover - Minecraft player - Forum Helper - Wiki Editor

Powered by DjangoBB