Using "And", "Or", "Attn" in an IF Statement in Print MergeLast reviewed: July 30, 1997Article ID: Q68043 |
The information in this article applies to:
SUMMARYWhen 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 "and" in front of the wife's name when the husband's name is present, as follows:
John Jane John and JaneThe following nested IF statement will meet that condition:
{If {husb} <> "" "{husb} {if {wife} <> "" "and {wife}"}""{wife}"}You can alter this statement for "or", "attn", etc. by substituting the bookmark {company} (for husb), {contact} (for wife) and substituting "attention" (without the quotation marks) or any other appropriate word.
|
KBCategory: kbprint
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |