Discuss Scratch
- Discussion Forums
- » Suggestions
- » Elif (else-if) block
- fdreerf
- Scratcher
1000+ posts
Elif (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. 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.
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
- 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
Also, I'm aware I'm necroing
- portalpower
- Scratcher
1000+ posts
Elif (else-if) block
it doesn't count as necroposting because it's one the suggestions forum and it's being constructive Also, I'm aware I'm necroing
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
I'm not sure if this is a dupeindeed 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.
________________
Only fdreerf can break the equilibrium.
________________
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
apparently according to this guy, a stick on the road could confuse a new scratcher No support,stacking if-else blocks is really easy, and this might confuse new scratchers.
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
- 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
It is also a bit ambiguous. Would it be: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. 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.if <...> then {
} ::control
else if <...> {
} ::control
else if <...> {
} ::control
if <...> thenOr:
else
if <...> then
else
if <...> then
end
end
end
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
All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.
repeated privilege, not an expectationApril Fools Day on the forums has been a
- dertermenter
- Scratcher
1000+ posts
Elif (else-if) block
I was thinkingIt is also a bit ambiguous. Would it be: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. 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.if <...> then {
} ::control
else if <...> {
} ::control
else if <...> {
} ::controlif <...> thenOr:
else
if <...> then
else
if <...> then
end
end
endif <...> then
else
if <...> then
end
if <...> then
end
end
if <> then
else
elif
end
All suggestions are unnecessary. If a suggestion is necessary then it's a bug report.
repeated privilege, not an expectationApril Fools Day on the forums has been a
- 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!
Don't Click This Link
My Latest Project Posted! (Potential Epilepsy Warning, Slightly Low Quality)
when green flag clicked
play sound (rickroll v)
- dogsmakemehappy
- Scratcher
1000+ posts
Elif (else-if) block
The workaround:
if <...> thenAnd so I think that this block is going to be somewhat pointless, as the workaround is so easy.
... // if the first condition is met, then this would run
else
if <...> then // this is now acting as this else if block
...
end
end
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
a realistic shiny pokemon hunting simulator. to use, go here.
I am Dogsmakemehappy (Github) A
Dog Lover - Minecraft player - Forum Helper - Wiki Editor