jQuery if A length == 0 && B length == 1 do something
How do I get this code to work correctly if I want (A.length == 0 && B.length == 1)?

        $(function() {
    if (($('.thePrices').find('.addcartforlower').length == 0 ) && ($('.exclusive').length == 1 )) {
                 $('.thePrices').find('a').after(jQuery('div[class="wb_main"]:eq(0)').addClass('winbuyerset'));
    		     $('.thePrices').find('.wb_main').before(jQuery('div[id="compare"]:eq(0)'));
                  
          }
      });
jQuery if A length == 0 && B length == 1 do something
===

How do I get this code to work correctly if I want (A.length == 0 && B.length == 1)?

        $(function() {
    if (($('.thePrices').find('.addcartforlower').length == 0 ) && ($('.exclusive').length == 1 )) {
                 $('.thePrices').find('a').after(jQuery('div[class="wb_main"]:eq(0)').addClass('winbuyerset'));
    		     $('.thePrices').find('.wb_main').before(jQuery('div[id="compare"]:eq(0)'));
                  
          }
      });