Problem with contact variables Hubl eMail

Hello,

I am trying to use hubl to simplify an issue we have.

We have two contact variables for two files (contact.file1 and contact.file2), if any of these variables has the value=1 then we have to add a link to this file.

We have write this code, but it doesn’t work

{% set theFile1 = contact.file1 %}
{% set theFile2 = contact.file2 %}
{% if theFile1== 1 %} <p>URL to file 1</p>{% endif %}
{% if theFile2== 1 %} <p> URL to file 2</p> {% endif %}
<!-- below here we print the value of these variables and the print is ok, it prints 1 or 0 without any problem -->
<p>{{theFile1}}</p>
<p>{{theFile2}}</p>

Any help is welcome

Thanks in advance

Santiago

Sorry, now I have found the same question here in the community, and now I realize that it is not possible to use a contact variable in an “if” in emails.

It is a problem, because we have a lot of combinations, perhaps hubspot could analyze this problem and proposal to improve this tool.

Best regards