Code using if else

I want to code a sphero to either draw a rectangle or another shape using if else.
Thanks in advance for any help.

I have Coded a example for you

if you have any questions just contact me.

1 Like

Thank you so much. I am a bit of a beginner but need to teach some 10 and 11 year olds block coding with Spheros. This works beautifully. Could I use this Code and add more shapes for it to draw by choosing a number eg have more than two shapes to choose from.

SPHERO Email Marketing -