You attempted to use the break keyword outside of a loop. The break keyword is used to terminate a loop or switch statement. It must be embedded in the body of a loop or switch statement.
Exception
A label can follow the break keyword.
break labelname;
You only need the labeled form of the break keyword when you are using nested loops or switch statements and need to break out of a loop that is not the innermost one.
To correct this error
Make sure the break keyword appears inside an enclosing loop or switch statement.
Break | Controlling Program Flow | Troubleshooting Your Scripts