I'm trying to do an application that allows the user to enter a 4-5 character string consisting of a number, two letters that determine the output, and then 1 or 2 more numbers. If it is not 4-5 characters it should display a error message and display an error message if the 2 and 3rd characters are not a correct delivery method. I think I have a solid base to it but I have various errors and parts I don't know how to do. I would really appreciate it if I could get some help.
The loop isn't my main problem the (mailcd[1] = "F" && mailcd[2] = "O") is getting errors and so is the rest of the else statements underneath the = "_".