I've been receiving this error and need some help resolving it.
for(LP_TFL__c tfl : termForLoanList0)
{
for(ScorecardTier scorecardTier : scorecardTierList0)
{
//Compare Tiers String on Term Object to Scorecard Tier Name and Match
//Credit Line Values Accordingly
*if(tfl.Tiers__c.includes(scorecardTier.tierName))
{
ScorecardTier.creditLine = tfl.Credit_Line_Max_Amt__c;
ScorecardTier.promoDays = tfl.Promotional_Period__c;
ScorecardTier.apr = tfl.Interest_Rate__c;
}
}
}
Save error: Method does not exist or incorrect signature:
void includes(String)
from the type String
The loop is supposed to compare all tiers in termForLoans and add the matching attributes to scorecardTier object when it finds a match in the list.