How do I make the script stop in the code without having reached the end yet?

Like something like this:

if ($2 isnum) {
exit here ; How do I exit here?
}
else {
... continue
}

... continue stuff here.


thanks