I'm working on a project for members who use our HELOC product. the issue I'm having is the information I need to write from is coming from a custom object and not from the lead record. What I need to solve for is the following: I exported the list for the credit limit: ${account_cList} and previewed using a member who had this CO and that returned the values of: [{creditLimit=null}, {creditLimit=null}, {creditLimit=null}, {creditLimit=2000}, {creditLimit=20000}] The problem is I need the creditLimit value that is 20000, but I don't know how to identify which creditLimit value for the token to look at... and to (potentially) add complexity, I need to account for two different products: {description=HELOC 80%}, {description=HELOC 70%} and so once I get that, I need to take their limit and subtract the value of the balance to give me the difference, and identify which of the balances are associated with the correct HELOC product above. This is what I tried with no luck (I know it's way off... I just don't know what to do to get it on track): #foreach( $list in $account_cList )
#if( $list.listID.equals("creditLimit") )
#elseif($list.listID.equals("HELOC 70%, HELOC 80%") )
#set( $targetList = $list )
#break
#end
#end
$math.div($list, "$list.listID.equals(HELOC 70%, HELOC 80%"))
${display.alt($targetList.creditLimit,"No matching list found.")} Thanks.
... View more