Discuss Scratch

medians
Scratcher
1000+ posts

Elif (else-if) block

qwerty_wasd_gone wrote:

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}+::control
there should be this plus sign at the bottom
if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput::control

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput else {
} ::control
@delInput
@addInput

Last edited by medians (Dec. 22, 2022 00:47:51)


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
;
kingcapybaradev
New to Scratch
9 posts

Elif (else-if) block

mathfreak231 wrote:

(sorry for abrupt edit but my opinions have changed and because i am one of the first few posters i need to look good)

Don't call it “elif”, just because it's used in Python doesn't mean the name won't be confusing.
The block (renamed) may just work but maybe it will be too cluttering with the “+”s? It's useful but will require reorganization…
bruh they can say elif chill
Knightbot63
Scratcher
1000+ posts

Elif (else-if) block

Sooo
Like python with elif's?
Well, I do like it but the workaround tho
if <> then 



else
if <> then

end
end
Though I'm not copying and pasting tons of if thens and I think this can be useful for better organizations.
So support for the reasons I stated above.

Working on an RPG. Consistently losing followers because of inactivity.
I head to forums time-to-time. Not as much as I used to.
hill_walker123
Scratcher
100+ posts

Elif (else-if) block

medians wrote:

qwerty_wasd_gone wrote:

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}+::control
there should be this plus sign at the bottom
if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput::control

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput else {
} ::control
@delInput
@addInput
if <> then 



else
if <> then



else
if <> then



else

end
end
end

If my post is empty, I might've made a mistake, so disregard the post!

go look at me stuff please i'm beg
____________________________

shift + down
when green flag clicked
forever
wait until <(revolutionary) = [true]>
if (revolutionary) is still false somehow??? {
say [something dumb] for (2) secs
} else {
say [something revolutionary] for (2) secs
}:: #808000
end
check out my true 3D project
also check out my D&D Board Project, it uses pen, and is only one sprite!
I even have Realistic Motion Blur, and it's in one block!

Guide To Using Scratchblocks in Forums!
PkmnQ
Scratcher
1000+ posts

Elif (else-if) block

hill_walker123 wrote:

if <> then 



else
if <> then



else
if <> then



else

end
end
end
99 levels of nesting vs long block

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

NeonG4
Scratcher
1000+ posts

Elif (else-if) block

I don't get why you would want an elif. Just do a if, else if.

Visit my shop!
Be high contrast
Hi! I'm NeonG4! I help on the HWS forum, create lame projects, and give advice.
My advice: Read this => https://en.scratch-wiki.info/wiki/User:Jvvg/Essays/Some_thoughts_on_the_forums
ROYGBIV (Rainbow text)



Sigs can go on for a while lol


Hi
when green flag clicked
set [move (10) steps] to [10]
think [move (10) steps]



Golly gee, what if I say something important like: I'm making minecraft in scratch! Follow me or I'll steal your ovens' fans' cabinets' glass. Or just a glass from your cabinet next to your oven fan. Do ovens have fans? Maybe its a stove fan, idk.






















































































]

Generation 3: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and increase the generation by 1. Social experiment.

Never gonna give you up, never gonna let you down.
You didn't learn.
An0therRand0mC0der
Scratcher
1000+ posts

Elif (else-if) block

NeonG4 wrote:

(#267)
I don't get why you would want an elif. Just do a if, else if.

frdsaw wrote:

so you don't have to have numerous else and if blocks.
medians
Scratcher
1000+ posts

Elif (else-if) block

NeonG4 wrote:

I don't get why you would want an elif. Just do a if, else if.
Because you have to drag out thousands of if else if blocks or keep duplicating them instead of just clicking a button that adds it faster. Also a lot of programming languages have else if statements.

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
;
GoodGoldlyJesus
Scratcher
38 posts

Elif (else-if) block

medians wrote:

qwerty_wasd_gone wrote:

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}+::control
there should be this plus sign at the bottom
if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput::control

if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}else if<>then{
}@delInput @addInput else {
} ::control
@delInput
@addInput

that's basically
if <> then 



else
if <> then



else
if <> then



else
if <> then



else

end
end
end
end
run ({
say [Hello]
wait (1) secs
say [World!]
} @addInput :: grey ring) @addInput :: control
when  :: control hat
run all at once when <button (@greenFlag ::#2aa1c9) hold for (3) seconds ::#2aa1c9> { 
drink monster energy drink ::#c99c2a
}

Last edited by GoodGoldlyJesus (Feb. 16, 2023 13:49:24)


The Backrooms
Play In Turbowarp Here
NeonG4
Scratcher
1000+ posts

Elif (else-if) block

medians wrote:

NeonG4 wrote:

I don't get why you would want an elif. Just do a if, else if.
Because you have to drag out thousands of if else if blocks or keep duplicating them instead of just clicking a button that adds it faster. Also a lot of programming languages have else if statements.
But you really shouldn't have “thousands of elif” statements. Sure, its laggy. But so is 1 block. I'm voting against this because you really don't need it.

Visit my shop!
Be high contrast
Hi! I'm NeonG4! I help on the HWS forum, create lame projects, and give advice.
My advice: Read this => https://en.scratch-wiki.info/wiki/User:Jvvg/Essays/Some_thoughts_on_the_forums
ROYGBIV (Rainbow text)



Sigs can go on for a while lol


Hi
when green flag clicked
set [move (10) steps] to [10]
think [move (10) steps]



Golly gee, what if I say something important like: I'm making minecraft in scratch! Follow me or I'll steal your ovens' fans' cabinets' glass. Or just a glass from your cabinet next to your oven fan. Do ovens have fans? Maybe its a stove fan, idk.






















































































]

Generation 3: The first time you see this, copy and paste it on top of your signature in the Scratch forums, and increase the generation by 1. Social experiment.

Never gonna give you up, never gonna let you down.
You didn't learn.
owlover2010
Scratcher
100+ posts

Elif (else-if) block


if <> {


} elif <> {


} else ::control

Hello, I am @owlover2010 .
Generation 4: the first time you see this copy and paste it on top of your sig in the scratch forums and increase generation by 1. Social experiment.

mtech22 wrote:

aII toasters toast toast, but what happens when there are no longer toasters being produced? will their technology simply become obsolete, with humans moving onto bigger, better things? will toast become a distant memory, written in textbooks of the future as foods us simpler generations ate? who's to say! society is constantly moving, changing, evolving, ideas being built upon, improved upon, theories being proven or disproven. are we but a blip on the timeline? sure, our names may not be remembered, but that's not the point. you can make a change. you can make a difference. you can make the world better, even if you don't know yet. and the first step is to go for it. even if you are afraid of failure. going back to the example of toasters, do you know off the top of your head who invented them? no? have you used one? probably. so, even if you don't remember my name, if I was able to help awnser your question, that is enough. if I was able to help you, even in the slightest way, this could push you to continue with scratch and not give up after the program crashes, and maybe one day learn other programming languages and change the world. everything is a cause and effect reaction, new inventions lead to the technology of the future, and even as the generations of the past are slowly forgotten, their influence lives on to this day, affecting how the world eventually turned out and how it will be for generations to come.

and, without toasters, we wouldn't have toast.
scratchyGabby6
Scratcher
100+ posts

Elif (else-if) block

scimonster wrote:

(#8)

mathfreak231 wrote:

First of all, nobody calls it Elif. It's “elseif” or “else if”.
Python users do, as that's the name of the Python keyword.

What's wrong with simply stacking if/elses?
if <...> then
...
else
if <...> then
...
else
if <...> then
...
else
if <...> then
...
else
...
this is simpler and less ‘big’
if <> then {

} else if <> then @delInput{

} else @delInput{

}@addInput:: control

Last edited by scratchyGabby6 (March 4, 2023 02:35:12)


({ring} @addInput)
gdfsgdfsgdfg
Scratcher
1000+ posts

Elif (else-if) block

Thats a pain in the butt

what happens if you have 100 else if statements


1000th post also use -forbidden- or highlight and ctrl (optional on some browsers) + shift + down arrow for more of my siggy


I gotta go touch sum grass

If it causes issues make it optional - gdfsgdfsgdfg

Do some research before replying to my posts - gdfsgdfsgdfg

curse you 60 sec rule

glory to Gdfsg Land

gdfsgdfsgdfg returns

Ocular(don’t look at my old posts plz)
PostPercent

kumquats? nah
my siggy is built with titani- *gets eaten*

Gdfsg Radio Station:
https://scratch.mit.edu/projects/1000736602

Are you sleeping you tall cat (project):
https://scratch.mit.edu/projects/1002042247/

The only suggestions I fully support are:
https://scratch.mit.edu/projects/924995948/

Don’t force me to get proof
get it yourself

my favorite topic is this (due to comedic purposes):
https://scratch.mit.edu/discuss/topic/709979/

my favorite post is this (it’s deleted but I got it from ocular):
https://ocular.jeffalo.net/post/7517300

Grand borrowing cars IV intro and loading (template):
https://scratch.mit.edu/projects/972295666/

Guess the game by its mission name:
https://scratch.mit.edu/discuss/topic/750145/

GBC (GTA) topic:
https://scratch.mit.edu/discuss/topic/751981/

BF (Battlefield) topic:
https://scratch.mit.edu/discuss/topic/753243/

still don’t have the popularity lol (atleast I reached 100 followers)

Skill issue

reject
Embrace :)

Help I ran out of ideas
medians
Scratcher
1000+ posts

Elif (else-if) block

gdfsgdfsgdfg wrote:

Thats a pain in the butt

what happens if you have 100 else if statements
And what if you have 100 nested ifs (like you have to do now)?

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
;
fvewg
New to Scratch
44 posts

Elif (else-if) block

The workaround can be easily done in a seconds, it won't bother anyone if you stack 100 block up each others, that's literally what Scratch is. This couldn't really do anything rather than closing the door for the more worthy blocks to be added, and it literally have the same case as the rejected forever if block.
scratchyGabby6
Scratcher
100+ posts

Elif (else-if) block

fvewg wrote:

The workaround can be easily done in a seconds, it won't bother anyone if you stack 100 block up each others, that's literally what Scratch is. This couldn't really do anything rather than closing the door for the more worthy blocks to be added, and it literally have the same case as the rejected forever if block.
Replace the if else block with this one

({ring} @addInput)
medians
Scratcher
1000+ posts

Elif (else-if) block


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
;
guifernandes
Scratcher
45 posts

Elif (else-if) block

edit: nvm im stupid

Last edited by guifernandes (March 23, 2023 00:44:00)


You won't regret scrolling down.

Generation 8: First time you see this? Copy and paste it on top of your signature in the forums and increase generation by 1.

Check out Gitran!

Funny stuff from forums (no hate intended):

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

Paddle2See wrote:

Would you recommend a confirmation dialog box on that action?
________________________________
| Really send missiles? (Y)es (N)o |
——————————————————

Please forgive my crude mock-up.

By the way - this is rejected for safety reasons.

https://scratch.mit.edu/discuss/topic/671203/

LEXXIRO wrote:

they see fast food…

then…

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooh looks deliciouas!1!1!

blablablahello wrote:

In no scenario would the sprites specifically make them want to eat fast food : P

medians wrote:

Does anyone actually think like this?
Support, fast food is bad for kids, and instead it should be replaced with vegetables. Club Penguin's Pizza Parlor is bad because it encourages people eat pizza. It should have been a vegetable shop instead.
Also, kids aren't just going to eat 100 pizza slices just because they see a pizza sprite on the screen.

Crispydogs101 wrote:

I saw the bird sprite and now I want to play duck life irl
(the entire thing is a masterpiece)

https://scratch.mit.edu/discuss/topic/641190/

An0therRand0mC0der wrote:


https://scratch.mit.edu/discuss/topic/693573/


Cool stuff from other users:

https://emma144.github.io/scratchmail/ - ScratchMail | News about Scratch
Elijah999999
Scratcher
1000+ posts

Elif (else-if) block

As in:
if <> then 



else
if <> then



else
if <> then



else
if <> then



else

end
end
end
end
?

Last edited by Elijah999999 (March 23, 2023 00:51:56)


No longer using the forums unless necessary.

Really, stop with the “support/no support” thing. I don't care if you give a reason. If you have a reason you don't need to add this to your post in the first place. Stop acting like your opinion makes a difference. It doesn't. Opinions were never the point. The point is whether or not it's a good suggestion. If you can give a good reason at why this is a good idea or point out a flaw, do it, but don't take sides.
This is not sarcasm.
medians
Scratcher
1000+ posts

Elif (else-if) block

Elijah999999 wrote:

As in:
long chain ::grey
?
Yes, except it would look like this:
if <> then {

} else if <> then {

} else if <> then {

} else if <> then {

} else @delInput @addInput {

}::control

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
;

Powered by DjangoBB