Break and Continue why giving error in Custom Script?

Why does using the break or continue statement giving error in custom script ?