September 18, 2019
I'm trying to use variables in EdScratch to set a loop count. I would like to have Edison respond differently to even and odd repetitions. I was able to do this easily in DroneBlocks using the Tello drones. Is there a way to do it with the Edison robots?
September 2, 2019
Yes, it's certainly possible to do this in EdScratch.
One way you could do this is by using Repeat Until loop along with a small formula to detect odd steps by dividing integers:
Another option if your objective is simply to alternate behaviour each loop is to use a variable alternating between two values in an If .. Else .. control block, which may be simpler to follow:
I hope that answers your query, please let me know if you have further questions.