Conditional+Loops

5 Times or 55 Times?

A 'Conditional Loop' will only execute the code inside the loop if a condition is true, if it is false, it will not execute the code.



In the example below, when the flag is clicked, the sprite will meow, and will keep doing this all day until a condition is met i.e. the up arrow is pressed.




 * ~ Task [[image:task.jpg width="267" height="304"]] ||
 * Your challenge here is, using the code above, get the sprite to meow but only while the space key is not pressed. Once the space key is pressed, the sprite should stop! ||

Additional Tasks

__No 1 - Create a Circle __

Use the code below to get the sprite to draw a circle To see how the program should run, download it here:

__No 2 - Create a Hexagon __

Use the code below to get the sprite to create a Hexagon To see how the program should run, download it here: 

__No 3 - Create a Spiral __

Use the code below to get the sprite to create a spiral

<span style="font-family: 'Comic Sans MS',cursive; font-size: 140%;">To see how the program should run, download it here: <span style="font-family: 'Comic Sans MS',cursive; font-size: 140%;">