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

#1 2010-10-20 20:49:12

Mario2898
Scratcher
Registered: 2010-06-17
Posts: 9

Help needed for green Blocks (operators)

Can someone plaese explain to me how to use these blocks:

[link spam removed by moderator]
smile

Last edited by cheddargirl (2010-10-21 04:35:24)


It takes skill to trip on a flat surface!

Offline

 

#2 2010-10-20 21:24:11

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Help needed for green Blocks (operators)

Why do you have all these random links? anyways, use
[blocks]<when green flag clicked>[/blocks]
use blocks and /blocks with brackets. like [ blocks ] and [ /blocks ] without the spaces

Offline

 

#3 2010-10-20 22:32:27

Mario2898
Scratcher
Registered: 2010-06-17
Posts: 9

Re: Help needed for green Blocks (operators)

need to know how to use operator blocks


It takes skill to trip on a flat surface!

Offline

 

#4 2010-10-20 22:55:55

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Help needed for green Blocks (operators)

There are two types of reports:

1. Um... I guess, reporters (The round ones)
2. Boolean (The hexagonal ones)


If you double-click on either type, it will give you a speech bubble saying what the value of that specific block is.
IE:
('2' + '2') will report 4

(a variable) will report whatever the variable's value is. You can set it with the "set ___ to ___"

(join 'Hello' 'world') will give you "Hello world"


Booleans will only say "true" or "false", and are used in the c-shaped if blocks.
Ie:
<'1' = '2'> will report "false", because 1 does not equal 2.
<'1' = '1'> should tell you "true", because 1 is 1.
<'Hello world' = 'Hello world'> will also say true.

Now, you may say: "Why would the booleans be useful? Because you might have

Code:

if <'1' = '1'>
move '10' steps

and no matter what, it will always move 10 steps!"
Great question! The simple answer is that you can "embed" reporters inside another. Just drag the block (block#1) into the space inside the other block (block#2) and release. Block#1 will automaticly put itself inside block#2, and there you go!

Therefore, you can have things like <'(a variable)' = '5'> and ('(a variable)' + '5')

Hope that helps! ^^


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#5 2010-10-21 17:05:31

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

Re: Help needed for green Blocks (operators)

If you need help with the "[^] of ()" operator block, this wiki page might help you.


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

Offline

 

#6 2010-10-22 08:06:52

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Help needed for green Blocks (operators)

I'm making a series of help for each section topics. Check out the Operators area when I make it, but it's fourth in line now to being made, behind Sound, Pen and Control. I've already made Motion and Looks help.


http://i.imgur.com/gp6tZ.gif

Offline

 

Board footer