Microsoft KB Archive/68043

{|
 * width="100%"|

Using &quot;And&quot;, &quot;Or&quot;, &quot;Attn&quot; in an IF Statement in Print Merge

 * }

Q68043

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c

-

SUMMARY
When you compile a print merge in Word for Windows, you may want to place a specific word in front of another word in certain circumstances. For example, you may want to place the word &quot;and&quot; in front of the wife's name when the husband's name is present, as follows:

John

Jane

John and Jane The following nested IF statement will meet that condition:

  {If {husb} <> &quot;&quot; &quot;{husb} {if {wife} <> &quot;&quot; &quot;and {wife}&quot;}&quot;&quot;{wife}&quot;} You can alter this statement for &quot;or&quot;, &quot;attn&quot;, etc. by substituting the bookmark {company} (for husb), {contact} (for wife) and substituting &quot;attention&quot; (without the quotation marks) or any other appropriate word.

Additional query words: 1.x 2.0 word6 winword 6.0 winword2

Keywords : kbmerge

Issue type :

Technology :