The 'if' function isn't returning a value from your XML. It's only going to evaluate the condition you specify. I use that same condition throughout my code and it works consistently. For example...
Geoff
var booAdminUser;
if($(xData.responseXML).find("Group[Name='access_AppAdmins']").length == 1) {
booAdminUser = true;
}
It's as simple as that. If the user is a member of 'access_AppAdmins', then the variable 'booAdminUser' gets set to 'true', otherwise, that line gets skipped.Geoff