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