This is a function to validate a zipcode in this format #####-####. I'm having trouble Making Check == True without all the hard coded information at the bottom. Is there a way Simplify the hard code at the bottom of the function?
I would just set Check equal to true at the start of the do-while loop and then set it to false if any of those if statements are ran. Then delete all hardcoded stuff at the bottom.