Hey,
is it possible to create if statements with operators such as:
Outbound:
{{#if (eq contact.gendercode 2 && contact.jobtitel "Consultant" )}}
{{else if (eq contact.gendercode 1 )}}
{{/if}}
Unfortunately I always receive an error, so my question is, if it is possible to use AND and OR operators within dynamic content statements?
Best regards,
Mario
see on example that worked for me - it's more complicated as it display results in a html table
for your example try initially with one condition (not two)
<!-- {{#if (eq this.name 'Email')}} -->
<!--{{/if}} -->
<table style="width:100%">
<tbody>
<!-- {{#each contact.relationship}} -->
<!-- {{#if (eq this.name 'Email')}} -->
<tr>
<td>{{this.role}}: {{this.field}}</td>
</tr>
<!--{{/if}} -->
<!-- {{/each}} -->
</tbody></table></b>
Hey,
slx thanks for your reply.
Could you provide me with a sample code? I am not sure if I did it right
Best regards
Hi
try to put brakets for each statement and add ‘eq’ or other operator for eecond condition
hope it works let us know
thx
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156