Skip to main content
I have an Apex method with this if statement:

 

if (((accountObj.Type == 'Distributor') || (accountObj.Type == 'Reseller')) && ((opp.CustomPickList__c == null) || (opp.CustomPickList__c.trim() == '')))

{

    return "Message";

}

If the account type is Reseller then Message is returned (and displays).  However, if the account type is Distributor then Message isn't returned.

Type is a picklist, as is the custom field.

Can anyone see why the message is displayed for a Reseller account but not for a Distributor?

Thanks!
1 件の回答
0/9000