I want to create a code that loops over an array and prints its index. I have created buttons to Stop (to stop the loop) & Start (to start the loop) the loop.
I have tried to achieve this by creating a condition that checks over a variable stop
, If its value is 1
the look should stop, however, this condition doesn't work.