Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Operator blocks
- Bruno_Real_fan
-
5 posts
Operator blocks
how do you use the operator blocks?((((((pick random (<<<<<> and <>><<> or <>><not <>>(join (letter (length of (([ v] of (9)) mod (0))) of [world]) [world]) > []> = []> < []> - (0)) to (10)) - (0)) / (0)) * (0)) - (0)) + (0))
- Bruno_Real_fan
-
5 posts
Operator blocks


- SansStudios
-
1000+ posts
Operator blocks
Welcome to scratch and welcome back to the forums!
Here is the wiki page on operators: https://www.en.scratch-wiki.info/wiki/Operator_Blocks
You can click on any of the blocks on that page for an in-depth description of what they do.
Operator blocks can be used to manipulate values or to get boolean values. I'll go over value manipulation first:
Try adding and clicking on the following operator to your project:
If you click on the block, it will say “3”. This is because 1 + 2 is equal to 3.
All circular operator blocks do something like this.
The sharp-edged operators are for boolean expressions. They are usually used with the if block. Here's an example:
Clicking on the above code will cause your sprite to say “1 is equal to 1!”. The equals operator checks if two values are the same.
Here is a useful resource for leaning more about boolean operators: http://kkfscs.weebly.com/scratch-operators.html
I hope this helps. If you have any more questions, feel free to ask!
Here is the wiki page on operators: https://www.en.scratch-wiki.info/wiki/Operator_Blocks
You can click on any of the blocks on that page for an in-depth description of what they do.
Operator blocks can be used to manipulate values or to get boolean values. I'll go over value manipulation first:
Try adding and clicking on the following operator to your project:
((1) + (2))
If you click on the block, it will say “3”. This is because 1 + 2 is equal to 3.
All circular operator blocks do something like this.
The sharp-edged operators are for boolean expressions. They are usually used with the if block. Here's an example:
if <[1] = [1]> then
say [1 is equal to 1!] for (2) secs
end
Clicking on the above code will cause your sprite to say “1 is equal to 1!”. The equals operator checks if two values are the same.
Here is a useful resource for leaning more about boolean operators: http://kkfscs.weebly.com/scratch-operators.html
I hope this helps. If you have any more questions, feel free to ask!
- Discussion Forums
- » Help with Scripts
-
» Operator blocks