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.

Yes just add more if else blocks for more shapes.So sorry for the late reply

1 Like
SPHERO Email Marketing -