Talk:Turing/If statements, cases

How do you make a program that asks for password, and if the user gets the password right he gets into the program;however, if he gets it wrong three times, it sends him somewhere else ?