If/then statement

I just got a Sphero sprk for christmas and I can’t figure out why this doesn’t work. I am just trying to make it go 50cm and then stop, but it just keeps rolling.

What am I doing wrong here? TIA

1 Like

It only runs through that program once.

To make it check for it multiple times, the loop until block should be used. Place the distance > 50 block onto it, and then once the loop finishes, tell it to stop. Do not put anything inside of the loop, unless you want it to repeat something else each loop


1 Like

That makes a lot of sense. Thank you!!

1 Like