if statment

why is this if not executing

What makes you think that it is not executing ?
Have you tried printing the variables that are being tested ?
Are their values what you would expect ?