Probably pretty dumb, but ...
I use the check for admin/mod quite frequently -- i.e. if a=b and they aren't a mod or an admin, then do this. I have seen it in the threads scripts written like this:
if ( (a=b) && (
($user['U_Status'] != 'Administrator'
) &&
($user['U_Status'] != 'Moderator'
) ) ) {
that works
Now, I don't know if I also found this in the regular scripts or if tinkering I just ended up with it some time, but I've also used this:
if ( (a=b) && ($user['U_Status'] != 'Administrator' && $user['U_Status'] != 'Moderator') ) {
(difference in bold)
That works as well.
Is one incorrect and I'm just lucky it's working? Or are they both correct and it's a matter of preference?