How can the loop be stopped after one cycle?

I don't wanna be a real pain. How do I declare in the scope?