End function is the last statement of the function where as if you wish to end the function somewhere during some conditional exit function should be used.
realheaven like this