Hi I need to to iterate over the sObject as --> Schema.PicklistEntry for this i have created the for loop to iterate over it but getting below error, can anyone help me out for this.
{`List<Schema.PicklistEntry> aFamily= fieldResult.getPicklistValues();
for(Schema.PicklistEntry ASD: aFamily) {
if (ASD!= 'BK-AIS') {
aFamilyList.add(ASD.getValue());
whereClauseBuilder += 'AND ABC__c = ' + ASD;
}
}`}
I am getting below error on line if(ASD!='BK-AIS)' can anyone help me out : Comparison arguments must be compatible types: Schema.PicklistEntry, String