We’re getting an issue mail merging with templates which have a merge field in the condition where the merge field is not surrounded by quotes and the data being merged has spaces and numbers.
For example
{ IF { MERGEFIELD numbers } = “Something 1” “TRUE” “FALSE” }
If the numbers mergefield is merged as “Something 1”, aspose merges the IF as “FALSE” whereas MS Word merges the field as “TRUE”
If there aren’t both numbers and spaces in the data, or if the mergefield is wrapped in double quotes then the IF is correctly merged as “TRUE” by aspose.
We are using Aspose.Words for .NET version 19.10.0
I have uploaded a console app demonstrating the issue.
AsposeSimpleMerge.zip (42.4 KB)