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

#1 2013-01-26 16:30:20

awesomedude214
Scratcher
Registered: 2012-11-21
Posts: 21

How do I use operators and what do they do?

I don't know how to use operators and I have seen other Scratchers use them but I dont know how to and I need help! Please reply immediately!!!!

Offline

 

#2 2013-01-26 18:24:02

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: How do I use operators and what do they do?

Operators are blocks mainly used to do mathematical concepts. They are always light green. Here's an example of one:

When gf clicked
If <(variable) > [10]>
Set [variable v] to ((4) + (variable))
They can also return statements for multiple outputs. Here's an example:
When gf clicked
if <<touching [sprite 1 v]?> or <touching [sprite 2 v]?>>
move (4) steps
Al the light green blocks are the operators. To use the operators, you drag them like other blocks, but these can only fit into other blocks, so they can't connect to the bottom of a block but can go in another.

Last edited by turkey3 (2013-01-26 18:32:55)

Offline

 

#3 2013-01-26 21:51:33

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: How do I use operators and what do they do?

You could also do it so you have an or. Like so (not in Scratchblock form, on my iPod):

if (key w) or (key up arrow) clicked
move [10] steps

Offline

 

Board footer