Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 554

multiple Inline OR statement not working in ampscript

$
0
0

I can do separate ORs and it works, but I don't want to repeat the content

%%[IF @Template == "RETXOTHPREWO8" THEN]%%<tr><td align="left" valign="top" bgcolor="#ffffff" style="padding:10px 25px 0px 25px;"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top" class="fallback-font" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color: #000000; mso-line-height-rule: exactly; padding: 10px 0 0px 0;"><!-- B !!!!!!↓↓↓↓↓↓↓↓↓↓↓↓↓↓ MAIN CONTENT AREA ↓↓↓↓↓↓↓↓↓↓↓↓↓↓!!!!!!//-->                    %%=v(@FirstName)=%%, we still have not received your final bill payment, which was due on %%=v(@DueDate)=%%. Please log in to your account and send your payment as soon as possible to avoid possible legal action filed against you. Or,  <a href="%%=RedirectTo(@Pay)=%%" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color:#0097d0; mso-line-height-rule: exactly; text-decoration:undeline;" target="_blank" alias="ways to pay">pay without logging in here</a>.</td></tr></table></td></tr>%%[ElSEIF @Template == "RETXOTHPREWO15" OR @Template == "RETXOTHPREWO22" OR @Template == "RETXOTHPREWO29" OR @Template == "RETXOTHPREWO36" THEN]%%<tr><td align="left" valign="top" bgcolor="#ffffff" style="padding:10px 25px 0px 25px;"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top" class="fallback-font" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color: #000000; mso-line-height-rule: exactly; padding: 10px 0 0px 0;"><!-- B !!!!!!↓↓↓↓↓↓↓↓↓↓↓↓↓↓ MAIN CONTENT AREA ↓↓↓↓↓↓↓↓↓↓↓↓↓↓!!!!!!//-->                        %%=v(@FirstName)=%%, we still have not received your final bill payment, which was due on %%=v(@DueDate)=%%. Please log in to your account and send your payment as soon as possible to avoid possible legal action filed against you. Or,  <a href="%%=RedirectTo(@Pay)=%%" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color:#0097d0; mso-line-height-rule: exactly; text-decoration:undeline;" target="_blank" alias="ways to pay">pay without logging in here</a>.</td></tr></table></td></tr>%%[ElSE]%%<tr><td align="left" valign="top" bgcolor="#ffffff" style="padding:10px 25px 0px 25px;"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td align="left" valign="top" class="fallback-font" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color: #000000; mso-line-height-rule: exactly; padding: 10px 0 0px 0;"><!-- B !!!!!!↓↓↓↓↓↓↓↓↓↓↓↓↓↓ MAIN CONTENT AREA ↓↓↓↓↓↓↓↓↓↓↓↓↓↓!!!!!!//-->                    %%=v(@FirstName)=%%, we still have not received your final bill payment, which was due on %%=v(@DueDate)=%%. Please log in to your account and send your payment as soon as possible to avoid possible legal action filed against you. Or,  <a href="%%=RedirectTo(@Pay)=%%" style="font-family: 'Inter', Arial, sans-serif, 'Inter-Normal'; font-weight: 400; font-size: 16px; line-height: 1.4; color:#0097d0; mso-line-height-rule: exactly; text-decoration:undeline;" target="_blank" alias="ways to pay">pay without logging in here</a>.</td></tr></table></td></tr>%%[ENDIF]%%

Viewing all articles
Browse latest Browse all 554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>