Conditional MergeFields

Trying to insert text into a document based on a value of a mergefield.
Seems I can get it working using the mergefield as both the field to compare and the value to compare, but can’t seem to get it to work comparing a mergefield to text.
See template and generated instance attached.
Anyone have an ideas?


Thanks for your request. This works as expected on the latest version of Aspose.Words. I use the following code for testing:

Document doc = new Document(@"Test001\in.doc");
string[] names = {
object[] values = {
doc.MailMerge.Execute(names, values);

You can download the latest version of Aspose.Words from here:
Best regards.