# [DOC Generator] Does it support IF conditions?

Forge Component

### DOC Generator

(3)
Published on 2018-09-16 by Sagar Nannaware
Published on 2018-09-16 by Sagar Nannaware

Does it support IF conditions?

João Melo wrote:

Does it support IF conditions?

What do you mean by that?

João Melo wrote:

I did not try IF condition, but I will try and let you know.

Thing is, when I use IF, I get the following error:

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

Can you please take a look at the document attached?

João Melo wrote:

Thing is, when I use IF, I get the following error:

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

Can you please take a look at the document attached?

Thanks for letting me know. IF condition is not supported in this version.

João Melo wrote:

Thing is, when I use IF, I get the following error:

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

Can you please take a look at the document attached?

Hi,

I have the same problem with Forge component OfficeTemplate. I also need the Word IF-condition so badly, because I have to display some text conditional to the mergefields. Did you find a solution for this problem?

Kit Lam wrote:

João Melo wrote:

Thing is, when I use IF, I get the following error:

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

Can you please take a look at the document attached?

Hi,

I have the same problem with Forge component OfficeTemplate. I also need the Word IF-condition so badly, because I have to display some text conditional to the mergefields. Did you find a solution for this problem?

Hi Kit Lam,

I will enhance the component soon to support IF condition.

Regards,

Sagar Nannaware

Sagar Nannaware wrote:

Kit Lam wrote:

João Melo wrote:

Thing is, when I use IF, I get the following error:

Cannot insert the OpenXmlElement "newChild" because it is part of a tree.

Can you please take a look at the document attached?

Hi,

I have the same problem with Forge component OfficeTemplate. I also need the Word IF-condition so badly, because I have to display some text conditional to the mergefields. Did you find a solution for this problem?

Hi Kit Lam,

I will enhance the component soon to support IF condition.

Regards,

Sagar Nannaware

Hi Sagar,

I would appreciate that, since it's a very nice feature of MS Word which we definately should use.