My understanding was that the use of RETURN keyword causes an exit out of a stored procedure. I assumed it would be the same with a function until I encountered this code. I