A break, end, or continue statement can only be issued from inside a while or foreach loop.
Command ends.
Check syntax of statement. Make any necessary changes and reissue.