Blocks are puzzle-piece shapes that are used to create code in Scratch. The blocks connect to each other vertically like a jigsaw puzzle, where each data type (hat block, stack block, reporter block, boolean block, or cap block) has its own shape and a specially shaped slot for it to be inserted into, which prevents syntax errors.
The block palette is an area of the graphical user interface located between the stage, sprite pane and scripting area. The blocks are located to the right of the categories, which can be clicked to automatically scroll to that category. The whole list can be scrolled through.
A Boolean block is an elongated hexagonal block shaped after the boolean elements in flowcharts. A boolean block contains a condition. When the block is invoked, it acts as a reporter block, reporting “true” or “false” string values or the numbers “1” and “0” depending on their usage in a script.