When the test returns...

(Display Listing 1.)

When the test in the if-else clause returns true:

An image of a specific penguin is displayed. 

When the test returns false:

The else clause containing the next if statement in the nested structure is executed to test for the next value of index.

(Note that there is an easier way to do this using an array or a list, which is the topic of a future lesson.)