
I want to know how to do a validation code to my script

I try this:
var password;
var code1 = "my first pass";
var code2 = "my 2nd pass";
code3 var = "my 3rd pass";
password = prompt ("Enter your serial number :","");
if (password == code1 | | code2 == password | | password == code3) {
Run (this);
password = false;
alert ("Your serial number is \ n \ n \ n" + "OK! \ n \ n ", "C-replicator") / / file to open if password is correct
Else {}
alert ("Your serial number is \ n \ n \ n" + "WRONG! " \ n \ n ","C-replicator ") / / file to load if password is incorrect
}
but I have a problem
every time I open AE I must enter the password.
help me please! thank you!
and sorry for my English
