If{...} conditional help


#1

Why can't I get this to work with Aspose.Word mail merge functionality?

{ if{ MERGEFIELD Blah = "" } "Display This" "Display That" }

Inline conditional IF statements in the Word template is ignored.

Please help...

Thanks!


#2

Doesn't seem like Aspose supports this...Does anyone have a workaround?


#3

Hi,

Thank you for considering Aspose.

Yes, IF conditionals will be supported in the future, at the moment they are ignored. The only obvious workaround is moving all the logic from the document to your code.