Discuss Scratch
- Discussion Forums
- » Suggestions
- » Elif (else-if) block
- Toodchop
-
Scratcher
100+ posts
Elif (else-if) block
I think an expandable “if” block would be nice.
if <> then {
} else if <> then @delInput {
} else @delInput {
} @addInput :: controlLast edited by Toodchop (Nov. 10, 2025 09:24:16)
- Alex5002
-
Scratcher
100+ posts
Elif (else-if) block
Yes please !
Stacking if else E blocks is monstruous and ugly to me.
Stacking if else E blocks is monstruous and ugly to me.
- Alguien_Miitopia
-
Scratcher
10 posts
Elif (else-if) block
that was a scratch 1.4 feature btw
it would ACTUALLY look like this:
it would ACTUALLY look like this:
if <> then {
} else if <> {
}::controlLast edited by Alguien_Miitopia (Nov. 3, 2025 15:03:24)
- PIXEL_BY_PIXEL_ERROR
-
Scratcher
500+ posts
Elif (else-if) block
that was a scratch 1.4 feature btwI think k you got confused with the
it would ACTUALLY look like this:if <> then
else if <>
end
end
forever if {
...
}::events- CodeComet6161
-
Scratcher
1000+ posts
Elif (else-if) block
if <needs this block::operators> then{
say [bump]
}else if <doesn't need this block::operators> then{
set [need for elif v] to [true]
}else{
wait until <this block is implemented::operators>
}::control- Toodchop
-
Scratcher
100+ posts
Elif (else-if) block
Support.
Last edited by Toodchop (Nov. 21, 2025 14:32:27)
- mtaka4
-
Scratcher
500+ posts
Elif (else-if) block
Support.Please explain why you support. The forums aren't a ballot box.
- dizzyboy42
-
Scratcher
1000+ posts
Elif (else-if) block
bumpplease explain why you bump the forums aren't a- wait what
—
jokes aside, no support just putting multiple “if else” blocks inside each other works
- Ym2612
-
Scratcher
100+ posts
Elif (else-if) block
how would something like this
if <> thenwork with an elif block?
...
else
if <> then
...
end
...
end
- medians
-
Scratcher
1000+ posts
Elif (else-if) block
how would something like thisIn that case, you could just do that or do this:if <> thenwork with an elif block?
...
else
if <> then
...
end
...
end
if <bool1::grey> then {
code1::grey
} else if <bool2::grey> {
code2::grey
code3::custom
} else {
code3::custom
}::controlYou don't have to use an else if/elif block in all cases- Ym2612
-
Scratcher
100+ posts
Elif (else-if) block
in that case, I support, this block would really help with project cleanlinesshow would something like thisIn that case, you could just do that or do this:if <> thenwork with an elif block?
...
else
if <> then
...
end
...
endif <bool1::grey> then {You don't have to use an else if/elif block in all cases
code1::grey
} else if <bool2::grey> {
code2::grey
code3::custom
} else {
code3::custom
}::control
- PIXEL_BY_PIXEL_ERROR
-
Scratcher
500+ posts
Elif (else-if) block
people have gotten so lazy they can just drag another else if block in there…
…but I hate it when I choose a
…but I hate it when I choose a
if <> theninstead of
end
if <> thenso support
else
end
- galaxylegend_lelo
-
Scratcher
100+ posts
Elif (else-if) block
What would this look like? Would it be multiple ifs part of one block?
if <foobars ::operators> then ::loopbut merge else with the other if
...
else
if <<foodoobar ::sensing> and<Quisque feugiat ipsum.::variables>> then
...
end
- Discussion Forums
- » Suggestions
-
» Elif (else-if) block