JScript  

Can't have 'continue' outside of loop

[This is preliminary documentation and subject to change]

You attempted to use the continue statement outside of a loop. The continue statement can be used only within the body of a:

To correct this error

See Also

Continue | Controlling Program Flow | Troubleshooting Your Scripts | JScript Language Reference