WD: How to Use Quotation Marks in a Conditional Merge Result (146648)
The information in this article applies to:
- Microsoft Word for Windows 6.0
- Microsoft Word for Windows 6.0a
- Microsoft Word for Windows 6.0c
- Microsoft Word for the Macintosh 6.0
- Microsoft Word for the Macintosh 6.0.1
- Microsoft Word for the Macintosh 6.0.1a
- Microsoft Word for Windows NT 6.0
- Microsoft Word for Windows 95
- Microsoft Word for Windows 95 7.0a
This article was previously published under Q146648 SUMMARY
This article describes how to define a conditional MERGEFIELD for a result
that includes quotation marks. Normally, a conditional {IF} field takes the
following syntax:
{IF {MERGEFIELD name} = "John Doe" "true condition" "false condition"}
Note that quotation marks are used to denote the parameters of the
conditional statements, and are not included in the printed result of the
merge. If you want to include quotation marks in your result, you must
include a backslash (\) before each quotation mark that you want to
include.
For example, if you want to print Now is the time..., in your document when the true condition is met, you must place a
backslash before each quotation mark. The conditional statement should look
similar to the following:
{IF {MERGEFIELD name} = "John Doe" "\"Now is the time...\"" "false
condition"}
Modification Type: | Minor | Last Reviewed: | 8/17/2005 |
---|
Keywords: | kbfield kbhowto kbmerge KB146648 |
---|
|