title: How to exit an apex function?
body: <p>I have an apex function which has a void return type. I want to exit the function at a specific position. Is this possible in apex without changing return type pagereference?</p>