Types of Block
Types of Blocks:
There are six different block shapes: Hat, Stack, Boolean, Reporter, C and Capehart blocks.
1.Hat Block: Hat blocks are the blocks that start every script. They are shaped with a rounded top and a bump at the bottom so you can only place blocks below them. There are eight Hat blocks in the Scratch editor, six of which are in the Events category, one in the Control category, and one in the category My Blocks (if one has created one custom block).
The shape of a Hat block is:
2.Stack blocks: Stack blocks are the blocks that perform the main commands. They are shaped with a notch at the top and a bump on the bottom so blocks can be placed above and below them. There are 62 Stack blocks, the most common block shape.
The shape of a Stack block is:
3.Boolean blocks: Boolean blocks are conditions they are either true or false. Think of them as “yes-no” questions. For example, if you asked a computer “does 2 + 2 = 4?”, it would either tell you “True” or “False”. With a hexagonal shape, there are 14 of these blocks.Â
The shape of a Boolean block is:
4.Reporter blocks: Reporter blocks are the values. Reporter blocks can hold numbers and strings. It is like asking a friend, for example, “What is 2 + 2?”, and they would answer “4”. It can also report a variable. For example, “What is your age?” and they may answer: “15”. Shaped with rounded edges, there are 34 of these blocks not counting the theoretically infinite amount of Reporter blocks that can be made for each variable and list.
The shape of a Reporter block is:
5.C Blocks: C blocks are blocks that take the shape of “C’s”. Also known as “Wrap blocks”, these blocks loop the blocks within the Cs or check if a condition is true. There are five C blocks, and they can be found in the Control category. C blocks can be bumped at the bottom, or capped.
The shape of a C block is:
6.Cap blocks: Cap blocks are the blocks that end scripts. They are shaped with a notch at the top and a flat bottom — this is so you cannot place any blocks below them. There are two Cap blocks which can both be found in the Control category.
The shape of a C block is: