Home > Microsoft Office > Word  > If Then Else Rule - Word

If Then Else Rule - Word
If you are doing a Mail Merge in Word, you can tailor the message to your audience using the If...Then...Else... rule. For example, if you are sending an e-mail to both students and teachers, you can alter the message using an If...Then...Else... rule to specifically target students or teachers. This process also works in Word 2013 & 2010.
Step 1:Create the Mail Merge and enter your Merge Fields. You may type the generic message that can go to all recipients, however do not type the recipient-specific message just yet.

Step 2:
Click the Mailings tab. Select Rules from the Write & Insert Fields group and choose If...Then...Else...

Step 3:Choose the Field name. This is the detail that determines what message will be sent to who. In this example, the Field name is Position because the message is going to either teachers or students.

Step 4:Choose your Comparison. The example uses Equal to, because the message is being sent to the position equal to teacher or student.

Step 5:
Under Compare to, enter the condition. "Student" is used here, because the message needs to go out to those recipients with the Student position.

Step 6:
Type the message for the information you entered in the IF section under Insert this text.

Step 7:Under Otherwise insert this text, type the message for the other group (teachers in this example).

Step 8:Click OK.

Step 9:With under the Mailings tab, click Preview Results.

Step 10:Scroll through the Mail Merge. You will see that the messages are tailored to the field you specified.

Related Articles