If() statements in .docx templates

Hello,

I have a template of type .docx in which certain checkboxes must be shown as 'Checked' or 'Not checked' depending on the value of some variables.


I also have to, in case X variable exists, I have to show a block of the document and not show it if it is empty.

I was trying to use MS Word 2007 from template but although it takes the fields correctly with the ###, I don't know how to implement those "if()" conditionals and make it work.

I have also been looking at the Docx from dynamic template smart service of the 'Advanced Document Templaiting' plugin but I am not sure how to do the XML part and if I could do those "if()" with it.

Has anyone had this problem or some solution available?

Thanks in advance

  Discussion posts and replies are publicly visible