Creating a selection structure in Alice

Drag the if tile from the bottom of the Alice development screen and drop it at the appropriate location in the edit pane.

You will be required to select a placeholder value of true or false.

This will result in the skeleton code shown in Figure 7 being inserted into the edit pane.

Figure 7. Skeleton code for a selection structure.