why does this not return else and why is variable not used

if someone could please help this a follow to my earlier question for the ok button if password is correct will change your panels background colour and tells you you have the correct password if not the panel would remain black and through up a error message however the else statement is not being returned so its as if the user has always passed help woul be very welcomed

"if(isMatch = true)" This line should be "if(isMatch)" or "if(isMatch == true)". When you do what you have it is setting isMatch to true then evaluating the if statement. That is why it is always true and never enters the else.