I knowyou said that everything is true. However, it might be worth debugging if you have not.
I would suggest for debugging trying the two parts of the if statement separately.
Try the a = b comparison to make sure it returns true
Then separately
try the a.usrgrp... = 1465 to make sure it returns true
I suppose it could be a datatype issue, for example strings vs. numbers which could easily be missed. However, debugging by trying the 2 comparisons separately should help you find the problem(s) by clearly showing which is failing to be true.
Regards,
John W.