Discuss Scratch

Blop_Animations
Scratcher
5 posts

What are the oporater blocks?

Please tell me.
medians
Scratcher
1000+ posts

What are the oporater blocks?


And <[] contains []?> because the version I use for my screenshots and my projects doesn't have that.
To see more info on what these do, see:
https://cdn.scratch.mit.edu/scratchr2/static/__0e83330413f7a7b5731284573c98ccdc__/help/en/home.html

Last edited by medians (March 17, 2023 20:35:01)

ARandomNumberIs7482
Scratcher
1000+ posts

What are the oporater blocks?

Blop_Animations wrote:

Please tell me.
Operators are blocks (not really blocks, but I don't know what to call them) that can perform mathematic equations.
ARandomNumberIs7482
Scratcher
1000+ posts

What are the oporater blocks?

dontdotaxevasion wrote:

ARandomNumberIs7482 wrote:

Blop_Animations wrote:

Please tell me.
Operators are blocks (not really blocks, but I don't know what to call them)
The general name for these blocks are “reporters” because they report a value. Reporters with triangle ends are boolean reporters since they return either true or false.
Booleans are actually supposed to be called “predicaments”

Also thanks
supergamer10000
Scratcher
1000+ posts

What are the oporater blocks?

This might help you.
SavetheAtlantic
Scratcher
1000+ posts

What are the oporater blocks?

ARandomNumberIs7482 wrote:

dontdotaxevasion wrote:

ARandomNumberIs7482 wrote:

Blop_Animations wrote:

Please tell me.
Operators are blocks (not really blocks, but I don't know what to call them)
The general name for these blocks are “reporters” because they report a value. Reporters with triangle ends are boolean reporters since they return either true or false.
Booleans are actually supposed to be called “predicaments”
Not true.
CST1229
Scratcher
1000+ posts

What are the oporater blocks?

ARandomNumberIs7482 wrote:

(#5)
Booleans are actually supposed to be called “predicaments”
Snap! calls boolean blocks “predicates”:

(it also calls stack blocks command blocks, but I think Scratch moreso uses “stack block” and “Boolean block” for commands and predicates, from the source code.)

Last edited by CST1229 (March 18, 2023 08:03:32)

greatman1111
Scratcher
100+ posts

What are the oporater blocks?

Operator blocks perform mathematical equations.
And you can use
<[] = []>
to see if the user has a certain username.
Im_KookiereeSoHI
Scratcher
100+ posts

What are the oporater blocks?

Blop_Animations wrote:

Please tell me.
Well, you know how symbols like “+” and “-” Are called operations? Almost everything in that section has to do with math like the
(() mod ()) 
operator seperates the remainder.

Last edited by Im_KookiereeSoHI (March 19, 2023 14:33:15)

B0o0lean
Scratcher
1000+ posts

What are the oporater blocks?

to add, the operators aren't meant to be stacked in code themselves; instead they report values and you're meant to put them in blocks
they perform mathematical equations and relate to strings. they work with true/false values and handle strings, so they're useful if you want to perform equations or write different words
ZboysCode863
Scratcher
68 posts

What are the oporater blocks?

(() + (0))
(() - (0))
(() - (0))
(() / (0))
These are math blocks. They just solve whatever you put in it.

(pick random () to (10))
Like what it says, it picks between the first number to the second one. (For example, if it's:
 (pick random (3) to (15)) 
, then it picks either 3,4,5,6,7,8,9,10,11,12,13,14 or 15.)

<[] < []> 
<[] = []>
<[] > []>
These are comparison booleans. It decides if the equation in it is true or false.

These operators are simular, but have different operations.

<<> and <>>
This is another boolean. If both sides are true, it'll set this block to true. If only one or none of them are true, then this boolean will be set false.

<<> or <>>
This is the “Or” boolean. It's like the “And” boolean, but if one side is true, then the “Or” boolean will be set true. (basically, it's picking between both operations. You can have more than one
<<> or <<> or <<> or <>>>>

<not <>>
This is the “Not” Boolean. If it's false, then the “Not” will set it to true. If the operator in it is true, then the “Not” will be set to false.

(join [hello] [world])
This operator joins two values / words together. That means, it'll set it to “helloworld” (Like the “Or” boolean, you can add as many “join” together.)

(letter (3) of [world])
This operator checks what letter (first value) is in the word (second value). So, if you are looking for letter 3 of world, it will be “r”.

(length of [world])
This operator checks how long (in characters) the value / word is. So, if you are looking for how many letters are in world, you'll get 5.

More info about the operators can be found here: https://projects.raspberrypi.org/en/projects/getting-started-scratch/11

Hope this helped!
ARandomNumberIs7482
Scratcher
1000+ posts

What are the oporater blocks?

CST1229 wrote:

ARandomNumberIs7482 wrote:

(#5)
Booleans are actually supposed to be called “predicaments”
Snap! calls boolean blocks “predicates”:

(it also calls stack blocks command blocks, but I think Scratch moreso uses “stack block” and “Boolean block” for commands and predicates, from the source code.)
oh god i said it wrong COUGH COUGH
medians
Scratcher
1000+ posts

What are the oporater blocks?

ARandomNumberIs7482 wrote:

Blop_Animations wrote:

Please tell me.
Operators are blocks (not really blocks, but I don't know what to call them) that can perform mathematic equations.
Well, they're oval blocks known as reporters.
Also, if you want this block to generate decimals, you can put a dot like this:
(pick random (3.) to (10))
54387a
Scratcher
1000+ posts

What are the oporater blocks?

Operators are a group of blocks that do comparing, calculate certain properties of text and math.
Example:
<[]=[]>
<[]contains[]?::operators>
<not<>>
<<>and<>>
<<>or<>>
or
(()+())
(()-())
(join[][])
(pick random()to())

Last edited by 54387a (March 21, 2023 03:52:55)

Powered by DjangoBB