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