Discuss Scratch

777COOLKID3
New Scratcher
14 posts

Elif (else-if) block

(long unnecessary blockspam removed by moderator - please don't spam)

Last edited by LittleGreyCells (Aug. 17, 2026 00:23:23)

17Domin0
Scratcher
1000+ posts

Elif (else-if) block

(long unnecessary quote removed by moderator - please don't spam)

Last edited by LittleGreyCells (Aug. 17, 2026 00:22:45)

icecubefromssc
Scratcher
3 posts

Elif (else-if) block

if <> then 



else if <> then



end::control

Last edited by icecubefromssc (July 26, 2026 04:40:48)

localrulebreaker
Scratcher
100+ posts

Elif (else-if) block

BUUUUMMPPPPP
sphereanimations
Scratcher
5 posts

Elif (else-if) block

if <input> then run if <>
//anything


else if <>
//anything
end
Personthatisnormal
Scratcher
100+ posts

Elif (else-if) block

if <> then {

} elif <> then {

} elif <> then {

} elif <> then {

} [+] [-]:: control

Something like this.

Last edited by Personthatisnormal (Aug. 16, 2026 22:18:05)

medians
Scratcher
1000+ posts

Elif (else-if) block

kyle_jm wrote:

Noooooooooooooo support, the workaround is extremely basic (so basic to the point that i dont even think it's worth being called a workaround) so there's no point in wasting time on this (it's literally 1 extra block lol what clutter are you people talking about)
With the workaround, you have a bunch of nested if else statements and it can add up, whereas this would be a block where you could just press the arrows or green/red icons to add or remove else ifs
It could replace the block
Shuaib_Zaker
Scratcher
100+ posts

Elif (else-if) block

kyle_jm wrote:

Noooooooooooooo support, the workaround is extremely basic (so basic to the point that i dont even think it's worth being called a workaround) so there's no point in wasting time on this (it's literally 1 extra block lol what clutter are you people talking about)
Look at this mess first:
if <> then 
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else

Last edited by Shuaib_Zaker (Yesterday 20:01:17)

ilikescratchsomuch17
Scratcher
69 posts

Elif (else-if) block

I support this, I really don't want to just manage a bunch of nested if-else's. I think that the block structure could be something like:
if <... :: grey> then {
...
} elif <... :: grey> @delInput @addInput {
...
} else {
...
} :: control
The arrows are for adding/removing elif branches for those who don't know.

Powered by DjangoBB