you could also turn it on its head,

IF CODE_ONE <> 13 THEN EXIT_TO_ERROR

AND SO ON,

Then after the last comparison you have a valid password.