Hello,
I am currently experiencing issues with IF conditions that contain multiple merge fields in my Word documents. Here is an example of the merge fields I am using:
{ IF { MERGEFIELD Organization } <> "Australia" "{ REF FullAddress \* MERGEFORMAT }" "" \* MERGEFORMAT }
{ IF { MERGEFIELD Organization } = "Australia" "{ REF Address \* MERGEFORMAT }, { REF City \* MERGEFORMAT}, { REF Zip \* MERGEFORMAT }, { REF Country \* MERGEFORMAT }" "" \* MERGEFORMAT }
After the mail merge process, the output in my .docx file is as follows:
{ IF "Australia""AZERTY, Tallarook, 3550, VIC, Australia"" "" \* MERFORMAT }
{ IF "Australia" = "Australia" AZERTY, Tallarook, 3550, Australia" "" \* MERGEFORMAT }
As you can see, the output is incorrect. It seems that some quotation marks and equals signs are missing, and the IF condition “Australia” is not correctly processed.
Could you please help me understand why this is happening and how I can resolve this issue? Any assistance would be greatly appreciated.
Thank you in advance for your help.