
Hello,
I am trying to amend a conditional statement we use in an email linking to the contact record partner usage. The current conditional statement is correct and working, but we now have 2 redemption codes with the same provider, and I only want to show 1 of the redemption codes in the email. 1 code is status is active, the other one is inactive.
Does anyone know if this is possible?
This is the current conditional statement which works:
{{#each contact.bl_partnerusage_contact_bl_contactid}}
{{#if (eq this.bl_providername 'Provider')}}
{{this.blf_redemptioncode}}
{{/if}} {{/each}}
Can this be amended to only show 1 of the codes even if there are 2 codes listed as the same provider?
Thanks, Taggie
Hi Taggie,
Is the code status field already in the entity?
I think the key is to put the code state into an entity that can then be filtered using two consecutive if conditional statements.