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

#1 2008-07-29 14:06:22

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Open Else block

I have seen these a lot (including my project)- open else blocks, where you either have nothing on the if part (if it's true do this), or nothing on the else part (if true, do this, else do that). Does it even make a difference? Is an open else block the same as a regular if block?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#2 2008-07-29 14:21:16

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Open Else block

They're exactly the same, but sometimes I use the open else block just to notify myself that there is no other condition.

Offline

 

#3 2008-08-04 20:03:01

relyt12101
Scratcher
Registered: 2007-05-19
Posts: 500+

Re: Open Else block

Or it could be used to say that if this condition is met, else nothing.

<if> Pie = 1
eat pie
<else>
*do nothing*
<end>

Last edited by relyt12101 (2008-08-04 20:03:19)


http://img392.imageshack.us/img392/2860/pspbanneregg089deiy0.png

Offline

 

Board footer