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

#1 2010-05-13 19:16:40

shamrocker
Scratcher
Registered: 2009-03-19
Posts: 1000+

How do you get a (join_ _) block into a < not<> > block?

Title explains all. I am making a calculator, and I am trying to make a negative number function. I need:


<<  <not> (( join [] [] ))  >>


http://i46.tinypic.com/2s1b32e.png
respect the oxford comma

Offline

 

#2 2010-05-13 19:38:12

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

Re: How do you get a (join_ _) block into a < not<> > block?

How do you mean? The "Join" block concatenates two variables. Say I had a variable that was called "X" and another one called "Y." If the value of X is "Hello " and the value of Y is "How are you?" the result would be "Hello How are you?"

I think what you want is adding and subtraction, which can be found in the "Operators" column.

Offline

 

#3 2010-05-13 19:45:54

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: How do you get a (join_ _) block into a < not<> > block?

You can't.  I'll explain, but I have no idea how much you know already, so I'm sorry if I explain too much or too little.

The "not" block will only allow pointy-edged (boolean) blocks in it. Boolean blocks, including the "not" block, ask "questions" that can either be answered with "true" or false."   I'll use the script http://img230.imageshack.us/img230/455/notex.gif as an example. The full question is "Is it false that 5+n=a is true?" That's kind of confusing, so I'll break it down. The "not" block answers "true" if the "question" inside is false. In this case, the "question" inside is "Does 5 plus the variable n equal the variable a?". If n is 2 and a is 7, for example, the "answer" would be "true" because 5+2=7. Therefore, the "not" question's answer would be "false" because the answer to the question inside is not  "false." If n is 9 and a is 8, for example, the answer to "Does 5 plus the variable n equal the variable a?" is "false" because 5+9 is 14, not 8. So, the "not" question would be true. Does that make sense?

Anyway, to make a number negative, I usually just multiply it by -1:
http://img27.imageshack.us/img27/2783/makenegative.gif

Last edited by scmb1 (2010-05-13 19:49:56)


http://i48.tinypic.com/2z5pqad.png

Offline

 

Board footer