Hi all,
I am trying to make a table row appear based on data I am passing in from a single send API. If I pass a null value, do nothing. If there is something in there, make the row show up. It is not working. Any ideas one what I am doing wrong? (I’ve also tried the opposite of this and it didn’t work either)
{% if custom.POLICY_DENTAL_SUBSIDIZED_PREMIUM is none %}
<!—if a premium is not passed through, don’t show this table row -->
{% elif custom.POLICY_DENTAL_SUBSIDIZED_PREMIUM ==”” %}
{% else %}
<tr>
<td width=“5%” align=“center” bgcolor=“#00529b” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”> </td>
<td width=“90%” align=“left” bgcolor=“#ffffff” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”><table width=“100%” border=“0” cellspacing=“0” cellpadding=“0”>
<tr>
<td width=“21%” rowspan=“3”><img src=“https://cdn2.hubspot.net/hubfs/4155563/Carrier Templates/Dental.jpg” style=“display:block;width:80px;border-width:0;-ms-interpolation-mode:bicubic;”></td>
<td height=“26” colspan=“3” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 14px; color: #000000;”><strong>Dental Plan</strong></td>
</tr>
<tr>
<td width=“27%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”><strong>Monthly Premium</strong><br></td>
<td width=“20%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”><strong>Efective Date</strong></td>
<td width=“32%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”><strong>Federal Transaction ID</strong></td>
</tr>
<tr>
<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”>{{custom.POLICY_DENTAL_SUBSIDIZED_PREMIUM}}</td>
<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”>{{custom.POLICY_DENTAL_EFFECTIVE_DATE}}</td>
<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”><div align=“center”>{{custom.POLICY_DENTAL_TRANSACTION_ID}}</div></td>
</tr>
</table></td>
<td width=“5%” align=“center” bgcolor=“#00529b” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”> </td>
</tr>
{% endif %}