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?
In apex, the return keyword signals to immediately stop processing statements in that function.
public void doNothing() {
return;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With