Use IF Else condition within Process Email Template

Hi,

I tried to use below if else one-by-one in process email template html code but email comes with code and conditions are not working.

1. {if $check_service_c=="Yes"} sometext {/if}

2. <!--{if $check_service_c=="Yes"} sometext {/if}-->

3. <!--{{#if {::Leads::check_service_c::} == "Yes" }} sometext {{else}} sometext 2{{/if}}-->

4. {{#if {::Leads::check_service_c::} == "Yes" }} sometext {{else}} sometext 2{{/if}}

My requirement is, If checkbox is checked than show sometext

Any help will be highly appreciable

Regards

Parents Reply Children
  • The following all work for me in my Quotes template, hopefully you find some clues that help you. One thing I noticed is I use "eq" instead of "="

    {if !empty($fields.shipping_contact_name)}{$fields.shipping_contact_name}{/if}
    {if !empty($fields.shipping_email_address_c) and ($fields.business_region_c eq 'ABC')
    {$fields.shipping_email_address_c}
    {/if}
    {if isset($fields.billing_accounts.vat_c) and !empty($fields.billing_accounts.vat_c)}
    VAT No: {$fields.billing_accounts.vat_c}
    {/if}
    {if $product.discount_percent > 0}
    {$product.discount_percent}
    {else}
    {$product.discount_amount}
    {/if}

    FrancescaS