Question
Custom Object VTL #foreach loop, #if #else
Hi,
I have a record the qualifies for the if statement of the below VTL script. However, the output is always presenting the else statement value. Can some please advise.
#foreach( $item in $marketoLeadAutoEmail_cList )
#if(
$item.CEM == 'N'
&& $item.EHS_AFFILIATE == 'N'
&& $item.STATUS_CODE == 'L1'
)
#set($Affiliate_Id =$item.ALLIANCE_ID)
#else
#set($Affiliate_Id = 'afdfv')
#break
$Affiliate_Id
#end
#end