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

#1 2008-09-07 09:29:54

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

You can add boolean to lists/variables!

Try it! You can put boolean blocks into a list/variable! It will output as 0 or 1 depending on whether it's true or not!

Offline

 

#2 2008-09-07 10:33:47

terminator355
Scratcher
Registered: 2008-07-31
Posts: 100+

Re: You can add boolean to lists/variables!

coolstuff wrote:

Try it! You can put boolean blocks into a list/variable! It will output as 0 or 1 depending on whether it's true or not!

seriously? THATS AWSOME. that is one of the reasons to move to flash. and a feature that flash had but scratch DIDN'T but now it DOSE!!! yipy!!


No new stuff for now guys  wink  join me for some Black Ops on xbox: termhn or for some rock band on PS3: rocket232

Offline

 

#3 2008-09-07 10:44:59

zawicki1fromyoutube
Scratcher
Registered: 2008-07-31
Posts: 1000+

Re: You can add boolean to lists/variables!

what is a boolean block?


|Call Of Duty: Black Ops Wii Friend Code: 3519-4456-0013|
|Follow me on Twitter|Subscribe To My Youtube Channel

Offline

 

#4 2008-09-07 10:49:34

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

Re: You can add boolean to lists/variables!

zawicki1fromyoutube wrote:

what is a boolean block?

A diamond block. Something where there can only be two answers: true/false. <mouse down ?>, etc. are boolean blocks.

Offline

 

#5 2008-09-07 17:32:03

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: You can add boolean to lists/variables!

I don't understand the big deal about booleans, since a variable set to 0/1 or "true"/"false" always works fine for me. This is interesting, since in 1.2.1 adding booleans to a "say [ ]" block would output "true"/"false".


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#6 2008-09-07 17:41:54

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

Re: You can add boolean to lists/variables!

You know what I just realized? if you put a boolean block into a variable it will output as true/false. If you put it into a list it will output as 0/1

Offline

 

#7 2008-09-07 18:26:25

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

Re: You can add boolean to lists/variables!

coolstuff wrote:

You know what I just realized? if you put a boolean block into a variable it will output as true/false. If you put it into a list it will output as 0/1

Except online they're both true/false. Mysterious... Very mysterious...

Offline

 

Board footer