Happy Business Starts Here

Re: If condition not working in Quote Template

Highlighted
Support SME

IF condition not working in Quote Template

IF condition not working in Quote Template






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Support SME

Re: If condition not working in Quote Template

In one specific scenario IF condition was not working in the Quote Template. On checking the format I could see the MergeField was also enclosed in double quotes as below: "{ MERGEFIELD Quote.Previewed_Discount }"

 

IF "{ MERGEFIELD Quote.Previewed_Discount }" = "0.00" "no discount" "Discount:" \* MERGEFORMAT

 

When the double quotes was removed from the MERGEFIELD the IF condition worked fine.

 

IF { MERGEFIELD Quote.Previewed_Discount } = "0.00" "no discount" "Discount:" \* MERGEFORMAT





If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post

1 REPLY 1
Highlighted
Support SME

Re: If condition not working in Quote Template

In one specific scenario IF condition was not working in the Quote Template. On checking the format I could see the MergeField was also enclosed in double quotes as below: "{ MERGEFIELD Quote.Previewed_Discount }"

 

IF "{ MERGEFIELD Quote.Previewed_Discount }" = "0.00" "no discount" "Discount:" \* MERGEFORMAT

 

When the double quotes was removed from the MERGEFIELD the IF condition worked fine.

 

IF { MERGEFIELD Quote.Previewed_Discount } = "0.00" "no discount" "Discount:" \* MERGEFORMAT





If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

View solution in original post