New to BeepBox, how do I shorten this section of the loop, so it ends ...

New to BeepBox, how do I shorten this section of the loop, so it ends ...