Pages: 1
Topic closed
Title explains all. I am making a calculator, and I am trying to make a negative number function. I need:
<< <not> (( join [] [] )) >>
Offline
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
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 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:
Last edited by scmb1 (2010-05-13 19:49:56)
Offline
Topic closed
Pages: 1