Page 87 - Computer Genius Class 05
P. 87
The sprite ill as you to type your a ourite ruit. hen you press the nter ey the name
o the ruit appears in the speech u le o the penguin. The name o the ruit then appears
in the answer as well as in the variable name on the stage.
Conditional Blocks
Many times, you have to do a task which is dependent on some condition. For example, you
ha e to ma e mango sha e. There are t o conditions
a. o to the re rigerator and chec i there are mangoes. mangoes are there then you
will make mango shake.
. the mangoes are not there you ill ma e cold coffee.
ere the condition is the a aila ility o mango.
Advanced Blocks & Game Creation 85

