Sorry to ask this as I thought I knew the answer, I want to exit the program if userName is greater than 4 characters or userName is not an account called student. However this even if the userName is only 3 characters and is not student I'm still hitting Application.Exit. What am I doing wrong?
if (userName.Length > 4 | userName != "student")
{
Application.Exit();
}
Shame on me :-(