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

#1 2011-12-29 14:36:43

Tbtemplex97
Scratcher
Registered: 2011-11-12
Posts: 100+

True and False Variable / Blocks

I think you should have a black called Set Variable to False/true

this way we can use an if <[variable] = (true)> script


Online Status: http://blocks.scratchr.org/API.php?action=onlineStatus&amp;user=Tbtemplex97
Darkspace Coming Soon!, Try the Singleplayer Demo

Offline

 

#2 2011-12-29 14:37:39

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: True and False Variable / Blocks

You already can.
Variables don't have to be numbers you know, they can contain letters  tongue


Why

Offline

 

#3 2011-12-29 23:26:15

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: True and False Variable / Blocks

just use 1 and 0, 1 standing for true/yes and 0 standing for false/no

computers use this. (its binary!!)


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

#4 2011-12-30 03:59:11

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: True and False Variable / Blocks

varible in scratch can be words if you so desire you script coud be

<when green flag clicked>
<if><( <{ hi }> <=> eropnnarnfpronflanrwep )>
<move( 1 )steps>
<end>


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

Board footer