Inside the code block, stop the loop after running its code block by setting isOn to false.

Make sure to type false.