How can the loop be stopped after one cycle?

Please post text as text. Mobile browsers suck big time, even worse when having to open an attachment.

My code example is not complete. Add your servo code.