Docmerge displaying if and else tags

Hiya, 

I am creating a docmerge template with a lot of if/else conditions using || for or and && for and conditions in it. I am testing in sections and have noticed that the if/else isnt working and the if and else tags are being left in the rendered document. Is there something wrong in the coding i have set up? or is this a bug? Screenshot below of the codeing on the left and result on the left.

  • Hmm, I did use the same field in both conditions in my test, although I was using the Type field on the out-of-the-box Accounts module. Here is an example of a condition I used that worked:

    {if account_type == "Customer" || account_type == "Competitor"}

    So it seems like yours should also work, but maybe we are missing something or you are encountering unexpected behavior. Let us know what you find out with Support!

    -Brenda