OK,

the if-then-part must work !

Just insert this before:

password[0]="1"
password[1]="2"
...
password[7]="8"

and write, what happens !