Discuss Scratch
- Discussion Forums
- » Suggestions
- » Elif (else-if) block
- Malicondi
- Scratcher
1000+ posts
Elif (else-if) block
I suggested the ability to add more and it could go up to nine or something. You could remove it and any code inside would simply just be kicked out of that statement, but it wouldn't be deleted
but how would you extend the elifs?
Last edited by Malicondi (March 3, 2024 19:29:07)
post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
- The-Sushi-Cat
- Scratcher
500+ posts
Elif (else-if) block
Lil' plus at the bottom of the blockI suggested the ability to add more and it could go up to nine or something. You could remove it and any code inside would simply just be kicked out of that statement, but it wouldn't be deletedbut how would you extend the elifs?
Lmao statement was not the right word
Last edited by The-Sushi-Cat (March 3, 2024 19:41:00)
An evil kumquat ate my first username lol
Call me Sushi!
They/He/It/She in order of preference
A little part of me dies inside when someone says, “He/She” instead of just using they-
Try to refrain from saying, ‘No support’. It comes off as extremely negative. “The forums are for criticism! Don't post it you don't want it!” Agreed. But I never said that you should agree with everyone. No suggestion will ever be perfect
What sounds more constructive?
“No support, people would spam with it”
“This would lead to a lot of spam, since people can't get away from it. Not to mention, it might upset a few people with the way it's implemented”
In #1, you didn't help OP at all. You said you didn't like it, and why. Nothing else. Not even what was causing the issue of spam
In #2, you pointed out the flaws and the root causes of them. Flaws shouldn't always get a suggestion absolutely ignored
And simply supporting doesn't always help either. It's not a voting system, it's improving your ideas. There's going to be cons, there's going to be flaws, and that's the point of the suggestions. No suggestion is ever 100% perfect in any way
Here are some things you can look out for:
-Are there any flaws/cons that haven't been addressed or fixed?
-Is this idea fully flushed out? Or are there some questions you can ask?
-Are there any flaws that you know how to fix or do you know how to flush something out a bit more?
-Is there anyone else who is confused and needs some clarification?
If you don't have to do any of these, then you can move on!
Is a suggestion unable to be added because it's just impossible? Point out why and have them decide what to do next
But still, try not to say ‘no support’
- Malicondi
- Scratcher
1000+ posts
Elif (else-if) block
seems simple enought, support.Lil' plus at the bottom of the statementI suggested the ability to add more and it could go up to nine or something. You could remove it and any code inside would simply just be kicked out of that statement, but it wouldn't be deletedbut how would you extend the elifs?
post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.
coming soon :)
- starlightsparker
- Scratcher
1000+ posts
Elif (else-if) block
Bump
✮˚. ᵎᵎ ?彡⋆。˚ starlight !! * ੈ✩‧₊˚ ✧˖° female !! ⋆。°✩ they.them !!‧˚₊ muslim !!✶ .ᐟ
︶꒦꒷order at star's cafe! served w/ love꒷꒦︶
star's cafe is a store to order banners, pfps, and more!
(rounded) 1000th post | (actual) 1000th post | first post
~ pakistani muslim ~ ~ born in arabia ~ palestine supporter! ~
stop the Islam hate! — useful custom blocks — latest project — comment here — Python Learning History
Scratch inspired me to want to become a programmer when i grow up. I plan on learning python :>
- Sussycrewmate12
- Scratcher
9 posts
Elif (else-if) block
Support because this would make most codes become a large mess of orange blocks a bit less, and also because I might as well because I supported a dupe.
Last edited by Sussycrewmate12 (March 7, 2024 17:15:46)
I made the unfortunate mistake of making this my username 2 years ago, when among us was popular and I was 12
- MagicCoder330
- Scratcher
500+ posts
Elif (else-if) block
dupes be rolling
Hello, this is my signature! it goes under every post I make and isn't part of it. shift control down and such to see more
Misconceptions about the Scratch Room
* Low floor: It should be easy to climb in and get started with Scratch - even for Scratchers who have no experience programming. - This does NOT mean complex things shouldn't be added. Making the ceiling higher or the walls wider doesn't make the floor harder to get on.
* Wide walls: Scratchers should be able to make all kinds of things with Scratch - not just animations and games, but news programs, science experiments, things we can't even imagine. - Wide walls means that some things that may be unconventional or odd or “useless” at first glance may still be worthwhile to add, because some people may find them useful for making new unique things.
* High Ceiling: Even though it's easy for someone who is new to programming to get started with Scratch, it should still be possible to make complex stuff. - Although the floor is there, many forumers just look up at the ceiling rather than thinking about the floor. They say “this would be too complicated, new Scratchers wouldn't understand it” without considering the fact that it can be worked up to with the handy floor we have.
((( OwO :: #DC381F) :: #FFCC00) :: #FFCC00)This is Georgie the evil grapefruit. He is much larger, stronger, more nutritious and scarier than a kumquat. Donate your soul to him at my profile to help him gain power to overthrow the kumquats and claim his position as the best signature eater!
This is a social experiment, comment and you MIGHT get curator
Get games off the other categories!
- MagentaDude1359
- Scratcher
100+ posts
Elif (else-if) block
support, it can get real messy when using a ton of if-elses
This is my signature
Follow me
- StarSubject
- Scratcher
22 posts
Elif (else-if) block
An else if block would look like this:
if <> then {
…
}elseif<>{
…
Level [55.997] on my Level Calculatorprofile picture is an old drawing which isn’t good
- medians
- Scratcher
1000+ posts
Elif (else-if) block
Bringing this topic up.
Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness
i trolled redcat LOL
if you see this
{what method did you use::control hat;
answer on profile ::motion
} ::operators
- ihavenocluewhythisis
- Scratcher
100+ posts
Elif (else-if) block
Python users do, as that's the name of the Python keyword. First of all, nobody calls it Elif. It's “elseif” or “else if”.
What's wrong with simply stacking if/elses?if <...> then
...
else
if <...> then
...
else
if <...> then
...
else
if <...> then
...
else
...
its too big
this is block army, select THIS and do shift and down to see the rest of my signature:) :: hat looks
this is launcher, they are the same color as the top of the page, they LOVE clinging onto stuff.
I'll let pointy continue with this stuff
<yay!>
._. :: grey
<This is grey, they protect the posts from copiers. (the evil kumquats don't attack this signature cuz barrier! :: operators)>
<vari can you just wait? (oh sorry. :: operators)>
'v' :: pen
<this is liney, they created and fix the barrier>
./' :: control
<THE END IS NEVER THE END IS NEVER THE END IS NEVER THE END IS NEVER...>
:) :: looks hat
Sorry about that mishap, anyway this is glitch, he can glitch grey out of the barrier to get those copiers.
he sometimes glitches kumquats in tho
<DOES HE REALLY, BLOCKY?>
:) :: looks hat
yes he does pointyand now vari!(can blocky be with me? I hate being alone. :: operators)just wait ok?.(:| :: operators)
<this is vari, vari can fit in just about anywhere>
:) :: looks hat
you forgot they can just remove kumquats
(I did not even know I could do that! :: operators)
:) :: looks hat
this is linked to vari
forever
if <touching [evil kumquat v] ?> then
set [kumquat juices v] to (evil kumquats inside barrier :: operators) :: operators
set [evil kumquats inside barrier v] to [0] :: operators
end
end
<so THATS where our kumquat juice comes from!>
(I thought they always found a new signature! :: operators)
:) :: looks hat
yeah that is impressive
(I brought this one in! :: operators)
when green flag clicked :: cap
wait what!? :: looks hat
WHAT. IS.THAT. <WHAT. IS. THAT.>
(its a green flag cap block, it was all alone and abandoned. :: operators)
ⓗⓗⓗⓗ
ⓣⓣⓣⓣ
ⓣⓣⓣⓣ
ⓟⓟⓟⓟ*scratchblock metropolis being built*
if you found this click the link signature guide
- BringUpYourPost
- Scratcher
500+ posts
Elif (else-if) block
This will encourage nesting, as a never nesting no support
- jmdzti_0-0
- Scratcher
100+ posts
Elif (else-if) block
Support!if <>Ah, there we go.
else <>
else <>
end
So how would this be made, exactly? Would there be (+) at the bottom part of the loop so when it's clicked the above happens? I support.
Would look like this
if <> then{
}else if <>{
}@delInput@addInput::control
─ BREAKING NEWSCreator of The music finders shop, where you can get your favorite songs, without having to download from pesky websites! Highlight+shift+down to see more of my signature
The evil kumquats have rebelled and now they don't just eat signatures.
NOW THEY EAT YOUR «MY STUFF» AND OTHER 2.0 UI PAGES! triple click for more info. /j I just wanted to make fun of the bug. ngl would be funny to see people put this on their signatures. please fix this
My posts
My forum identifier:
uNnqYgxb7K
Keep on being creative :)
Extra emojis
- Quantum1993
- Scratcher
100+ posts
Elif (else-if) block
Couldn't you just do this? I suggest adding an Elif (else-if) Block so you don't have to have numerous else and if blocks. I also suggest, with this, that you can change the elif amount ( making it changeable by length through numbers as part of the elif block.).
I hope you take this into account, as I would find it very useful.
(Feels like a speech! XD)
if <> then
else
if <> then
end
end
Manager of Quantum Games and Quantum Software
Are you an experienced Scratcher? Join the Jurassic Park: Security Shift Development Team at https://scratch.mit.edu/studios/34523787
- starlightsparker
- Scratcher
1000+ posts
Elif (else-if) block
Oh my god we get it
Yes, you can do that
but it stacks blocks and that becomes messy
Yes, you can do that
but it stacks blocks and that becomes messy
✮˚. ᵎᵎ ?彡⋆。˚ starlight !! * ੈ✩‧₊˚ ✧˖° female !! ⋆。°✩ they.them !!‧˚₊ muslim !!✶ .ᐟ
︶꒦꒷order at star's cafe! served w/ love꒷꒦︶
star's cafe is a store to order banners, pfps, and more!
(rounded) 1000th post | (actual) 1000th post | first post
~ pakistani muslim ~ ~ born in arabia ~ palestine supporter! ~
stop the Islam hate! — useful custom blocks — latest project — comment here — Python Learning History
Scratch inspired me to want to become a programmer when i grow up. I plan on learning python :>
- ywc2
- Scratcher
73 posts
Elif (else-if) block
Interesting, but it might confuse new users because it's unclear which way the code will go since there are multiple possible outputs, the standard if-else chain is simple to understand.
- Quantum1993
- Scratcher
100+ posts
Elif (else-if) block
I agree with @ywc2. This would be confusing to most users. Oh my god we get it
Yes, you can do that
but it stacks blocks and that becomes messy
Manager of Quantum Games and Quantum Software
Are you an experienced Scratcher? Join the Jurassic Park: Security Shift Development Team at https://scratch.mit.edu/studios/34523787
- scratchyGabby6
- Scratcher
100+ posts
Elif (else-if) block
it's the opposite as without this block it would look like this: This will encourage nesting, as a never nesting no support
if <> thenbut with the elseif block, it would look like this:
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
end
end
end
end
end
end
if <> then {where the backward arrow removes the corresponding “else if” statement and the front facing arrow adds an “else if” statement
} else if <> then @delInput {
} else if <> then @delInput {
} else if <> then @delInput {
} else if <> then @delInput {
} else if <> then @delInput {
} else {
} @addInput :: control
({ring} @addInput)
- Davido2210
- Scratcher
8 posts
Elif (else-if) block
Me I play around with programming languages other than Scratch a little, and I notice they have something Scratch doesn't have - an else-if block.
For example, this example code uses elseif:
if (thing) {
do stuff
} else if (other thing) {
do other stuff
} else {
more stuff
}
I think this could be included in the if-else block by adding two arrows button on the side of the block, like some other blocks in Snap! have, to add an else if. I see that you can already do this with nested if-else blocks, but that gets really messy and confusing quickly. Here is what I am talking about by “nested if-else”:if <condition> then
some stuff
else
if <condition2> then
do other stuff
end
end
Zebra coloring would not be added, because the if/else if/else will be one big block, like this:if <> thenPeople who think this is a good idea (AKA Supporters):
example
else if <> :: celse
another example
else if <> :: celse
more stuff
else
yet another example
end
Tymewalk (That's me! Wait, don't I already support my own idea?)
MathlyCat
JamesOuO
cwkethan1508
liam48D
theonlygusti
IronBit_Studios
Nether_before
Vetpetmon
A-no-meep
chuckdaboss
Gaza101
pokejafe
PotOfGold
14 supporters
Semi-supporters:
stickfiregames
matey1234
Invisibowl
Who else thinks this is a good idea?
Yay! I just found out what a signature is!!!!!!!!!!!!!!
Maker of Rise of the Wild
That's literally the only thing I can think of about me
stop [ v]
stop [ v]
say [Why do I keep seeing fake blocks in signatures]
- BigNate469
- Scratcher
1000+ posts
Elif (else-if) block
I support. I don't like nesting so many if-then-else blocks.
Also, this is already a feature in most other Blockly-based programming languages, why not add it to Scratch?
Also, this is already a feature in most other Blockly-based programming languages, why not add it to Scratch?
Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it
foreverPlease read the list of Officially Rejected Suggestions before posting a suggestion for Scratch! 100th post
if <person asks [what's a signature] :: sensing> then
Redirect to [https://en.scratch-wiki.info/wiki/Signature] :: motion
end
end
This signature is designed to be as helpful as possible.
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Forum tips:
Don't post in topics where the latest post is over ~2 months old, unless you have something critical to add. Especially in topics that are several years old- it isn't helpful, and is known as necroposting.
Don't post unrelated things in topics, including questions of your own. Make a new topic for your questions.
You can use the
[color=color name or hexadecimal value here] and [/color]
Lesser-known Scratch URLs:
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects)
View a larger list at: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
1000th post
- ihavenocluewhythisis
- Scratcher
100+ posts
Elif (else-if) block
I suggest adding an Elif (else-if) Block so you don't have to have numerous else and if blocks. I also suggest, with this, that you can change the elif amount ( making it changeable by length through numbers as part of the elif block.).
I hope you take this into account, as I would find it very useful.
(Feels like a speech! XD)
heres a elif just because
if <> is true then {code} else if <> is true {more code} else{even more code} [else = true v]+ - :: control
Last edited by ihavenocluewhythisis (May 14, 2024 20:47:25)
this is block army, select THIS and do shift and down to see the rest of my signature:) :: hat looks
this is launcher, they are the same color as the top of the page, they LOVE clinging onto stuff.
I'll let pointy continue with this stuff
<yay!>
._. :: grey
<This is grey, they protect the posts from copiers. (the evil kumquats don't attack this signature cuz barrier! :: operators)>
<vari can you just wait? (oh sorry. :: operators)>
'v' :: pen
<this is liney, they created and fix the barrier>
./' :: control
<THE END IS NEVER THE END IS NEVER THE END IS NEVER THE END IS NEVER...>
:) :: looks hat
Sorry about that mishap, anyway this is glitch, he can glitch grey out of the barrier to get those copiers.
he sometimes glitches kumquats in tho
<DOES HE REALLY, BLOCKY?>
:) :: looks hat
yes he does pointyand now vari!(can blocky be with me? I hate being alone. :: operators)just wait ok?.(:| :: operators)
<this is vari, vari can fit in just about anywhere>
:) :: looks hat
you forgot they can just remove kumquats
(I did not even know I could do that! :: operators)
:) :: looks hat
this is linked to vari
forever
if <touching [evil kumquat v] ?> then
set [kumquat juices v] to (evil kumquats inside barrier :: operators) :: operators
set [evil kumquats inside barrier v] to [0] :: operators
end
end
<so THATS where our kumquat juice comes from!>
(I thought they always found a new signature! :: operators)
:) :: looks hat
yeah that is impressive
(I brought this one in! :: operators)
when green flag clicked :: cap
wait what!? :: looks hat
WHAT. IS.THAT. <WHAT. IS. THAT.>
(its a green flag cap block, it was all alone and abandoned. :: operators)
ⓗⓗⓗⓗ
ⓣⓣⓣⓣ
ⓣⓣⓣⓣ
ⓟⓟⓟⓟ*scratchblock metropolis being built*
if you found this click the link signature guide
- Discussion Forums
- » Suggestions
- » Elif (else-if) block