Jun 1, 201711:16 AM - edited Jun 1, 201711:18 AM
Participant
If-then statement causes syntax error when trying to publish
SOLVE
I'm getting this error when I try to publish a HubSpot webpage:
I'm getting the error regardless of whether or not the "Make this template available for new content" box is checked, and I think it's being caused by this code:
{% if contact.accepts_medicare = "Yes" %}, including Medicare{% endif %}
Someone from support pointed this out to me: "Please note that using personalization variables (contact and company variables) within if statements is not currently supported for email in HubSpot. These variables can be used for logic on COS page and blog templates."
But it's a webpage, not an email, so I don't understand why that would be a problem.