by David J. Malan <malan@post.harvard.edu>
Printer-Friendly Version of Tutorial

« Previous | Table of Contents | Next »

Statements

In programming, a statement is simply a directive that tells the computer to do something. Think of it as a command or an instruction. In Scratch, any block whose label reads like a command is a statement.

One such block instructs a sprite to say something:



Another such block instructs a sprite to go to some location:



Sometimes, you only want a statement to be executed under certain conditions. Such conditions are defined in terms of Boolean expressions, to which we turn our attention next.

« Previous | Table of Contents | Next »