I have the following code:
if (flag == 2 && username1 != username2 && password1 != password2)
{
alert =[[UIAlertView alloc ] initWithTitle: @"INCORRECT...
Values I have:
flag = 2 , username1 = @“aa“, password1 = @“aa“, username2 = @“aa“, password2 = @“aa“
So the above IF statement should evaluate to false right? Yet for reasons unbeknownst to me, the statements after the IF statement are executed! Any idea why?
Thanks for your input.