@skywalker2208Jul 20.2008 — #I don't believe there is because the break statement is used to break out of loops. The only way is with a return statement to my knowledge. If a certain condition is met you could use the return statement. What exactly are you trying to do? Do you have some code that we could help you with?
@HoboScriptJul 20.2008 — #I don't believe there is because the break statement is used to break out of loops. The only way is with a return statement to my knowledge. If a certain condition is met you could use the return statement. What exactly are you trying to do? Do you have some code that we could help you with?[/QUOTE]
That's exactly what a return statement can be used for. Prematurely ending a function.
@KorJul 21.2008 — #[B]return[/B] not only ends the run of a function but also, as its name says, may return a variable. If nothing specified is return, the return value is [I]undefined[/I]