How do I exit out of an awk function? "exit" stops entire program?
I think you want the return statement.
return