Word IF Then Else Rule (Mail Merge) Insert Fields
Previously in the article Word IF Then Else Rule (Mail Merge) I’ve explained how you can use the If Then Rule in Mail Merge. In that article the If Then Else Field would insert a text string based on the result of the comparison.
In this article I will explain how you can insert Field Values rather than Text Strings using the If Then Else Rule.
Assume you are sending letters to 100 recipients. In the Recipient List created for the recipients, there is an Age Field. What we want to do, is to compare the Age Field with the value 18.
- If the recipients is older than 18 years, then we want the Age to be displayed
- But if the recipient is younger than 18 years, we want the Text String “Under 18′ to display.
This will be the letter sent out to a 25 year old:
Follow the same steps explained in the article Word IF Then Else Rule (Mail Merge).
After completing step 1, press Alt+F9. This is what you will see:
The top part is the Greeting Line Field (which is irrelevant to our discussion):
Under that line you will see this:
This is the If Then Else Field:
The If Then Else Field:
As you can see the If Then Else Field has 3 parts:
This part compares the Age Field with the value 18:
Result If True:
This is what will be displayed if the If Statement returns True:
Result If False:
This is what will be displayed if the If Statement returns False:
What we need to do is to change the Result If True value to:
By doing this, when the result of the If Statement is true, the Age of the recipient will be displayed.
As explained in the previous section we need to replace the text
While the cursor is still in that location insert the Age Field:
Press Alt+F9 to return the normal view:
You can download the sample file used in this article from the link below: