I've been doing lots of Googling and looking in my books, but can't seem to find a function that does this? I'm basically wanting to try some things out in other peoples code and I'm trying to find a way to terminate code dead in it's tracks where I want... Bit like the die() statement in PHP?

Many thanks.