xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.78k stars 474 forks source link

Does the library support "if" conditions? #462

Closed IrinaZagaynova closed 1 year ago

IrinaZagaynova commented 1 year ago

I have a Word template with some tags. I need to display a sentence containing tags depending on the condition. If the condition is not met, do not output anything. Is it possible to do this using the DocX library?

The text with tags looks like this image