This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-08-18 13:37:56

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Elseif

There should be a brick that is like

if <<[1] + [1]> = [2] > 
say [All the world is right]
else
say [Error! Computer self destruction!]
end

but instead of else, maybe an elseif.  elseif works as a else but needs something to be fulfilled to go on.

I am not sure if this suggestion will go through because it may confuse new scratchers.


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#2 2012-08-18 13:39:10

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Elseif

Can't you just switch them?

Wait, nevermind, but, you can replicate it with:

if <((1) + (1)) + [2]>
do stuff
else
 if <stuff>
 do stuff
 end
end

Last edited by berberberber (2012-08-18 13:41:13)


http://i47.tinypic.com/2iaa73k.png

Offline

 

#3 2012-08-19 00:52:23

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Elseif

Closed by request.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer