The block < mouse down? > can only be true or false, because it is a boolean block. If the length of < mouse down? > is 4, then the answer to < mouse down? > has 4 letters, so it can only be true, because false has 5 letters. Do you get what I'm saying?
Last edited by BWOG (2010-03-01 18:09:39)
Offline
I'll make that clearer, BWOG...
The length block measures how many characters is in an amount of text. If you did (length of [Scratch]), you'd get 7, since the word Scratch contains seven letters.
When you do (length of <mouse down>), it's measuring the length of what's in <mouse down>. What's in there is either "true" (when you're holding the mouse down), or "false" (when the mouse isn't down). When you did (length of <mouse down>), it was measuring the word "true". It came out with 4, of course.
Any questions?
Last edited by Jonathanpb (2010-03-01 23:56:06)
Offline
project1 wrote:
What does length of mouse down equal. More what does it mean. Because it says that it is four.
Im going to look at this and explain Length of.
Length of involves strings and integer (Or words/sentences and numbers) it counts how many letters + spaces are in what has been defined in the area given.
Mouse down is weather the mouse button (Right click) has been pressed.
Offline