Discuss Scratch

AonymousGuy
Scratcher
1000+ posts

Else If

bozman wrote:

I don't think you people are getting my point. I know It can be done through stacking blocks, but an else if block would just make the scripts look easier to comprehend for newer scratchers, and would allow for much more cleaner looking scripts.
I was pointing out to another user a situation in which they would be useful.
dracae
Scratcher
1000+ posts

Else If

AonymousGuy wrote:

dracae wrote:

No support.
Find me a situation in which this block is used, and I'll find you a very simple solution that doesn't require YET ANOTHER extraneous block.
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end

Last edited by dracae (April 1, 2014 02:03:53)

9kiwi9
Scratcher
100+ posts

Else If

fetchydog567 wrote:

ExtremeLogic wrote:

if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else
if <> then
else

end

end

end

end

end

end
etc.
How did you switch up the colors in the blocks in your signature?
Not the place to ask.
———————————–
Anyway, support.
AonymousGuy
Scratcher
1000+ posts

Else If

dracae wrote:

if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
if <> then
end
But what if I need the else? Then it might look like this:
if <> then
end
if <<> and <not <>>>
end
if <<> and <<not <>> and <not <>>>
end
if <<> and <<not <>> and <<not <>> and <not <>>>>>
end
mathfreak231
Scratcher
1000+ posts

Else If

HeyGuys bumping
BlockWare
Scratcher
100+ posts

Else If

I posted the exact same thing; full support from me.
BlockWare
Scratcher
100+ posts

Else If

VoltageGames wrote:

Like the stuff in javascript? It would be obsolete.
Just do
set to

if <> then
else

if <> then

end
end

Something probably isn't obsolete if it's in every modern programming language and many old ones

Also, being easy to work around and “obsolete” doesn't mean much. Even “change x by (amount)” simplifies to “set x to (x plus amount)”

Last edited by BlockWare (Feb. 6, 2016 21:52:44)

awesomekid0224
Scratcher
1000+ posts

Else If

Support. This may help many Scratchers (like me) who are trying to code using Scratch without remixing.

Powered by DjangoBB