Found 2 unmatched 'EndIf

Hello,

Good day.

I am using this html in the email body.

Hello <>,

<<IF([Contract Disposition] = “For Renewal”)>>

The contract for <>, work order number <> is up for renewal.

Renewal Details:
• Number of Months: <>
• New Start Date: <>
• New End Date: <>

<>

<<IF([Contract Disposition] = “For Offboarding”)>>

The contract for <>, work order number <> is marked for offboarding.

Reason for Offboarding: <>

<>

Best regards,
ContractWatch Team

However, I am getting an error saying “Found 2 unmatched 'EndIf”. Can you help me how to fix this error ?

Thank you.

regards,

Ian G

Hi @igimenez

Can you try:

<html>
<body style="font-family: Arial, sans-serif; color: #333;">
<p>Hello <<[Business Unit]>>,</p>

<<IF:[Contract Disposition] = "For Renewal">>
<p>The contract for <strong><<[Resource Name]>></strong>, work order number <strong><<[Work Order Number]>></strong> is up for <strong>renewal</strong>.</p>
<p><strong>Renewal Details:</strong><br>
• Number of Months: <<[Number of Months]>><br>
• New Start Date: <<[New Start Date]>><br>
• New End Date: <<[New End Date]>></p>
<<ENDIF>>

<<IF:[Contract Disposition] = "For Offboarding">>
<p>The contract for <strong><<[Resource Name]>></strong>, work order number <strong><<[Work Order Number]>></strong> is marked for <strong>offboarding</strong>.</p>
<p><strong>Reason for Offboarding:</strong> <<[Reason for Offboarding]>></p>
<<ENDIF>>

<p>Best regards,<br>ContractWatch Team</p>
</body>
</html>

For reference:Use If expressions in templates - AppSheet Help

Also, you may want to consider using a Google Docs template, a LOT EASIER to build.

For reference:Use Google Docs templates - AppSheet Help