My original function is so complex. There is a complex computation. So, I have a condition where my function stop if this condition is met. That is good for me to not go further for the unneeded computation. Due to this, I try to give a simple example here to make my question clear for you. The main idea of my original function is to do some computation, and if the given condition is met, then the function stop otherwise it completes for the second computation. My original function is so complex. There is a