WD2000: Unwanted Backslash Included in IF Field Result (193709)



The information in this article applies to:

  • Microsoft Word 2000

This article was previously published under Q193709

SYMPTOMS

An unwanted backslash "\" appears and prints in a conditional field's result.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Commas and quotation marks serve special purposes inside conditional (If) fields. A backslash immediately before one of these characters inside a field indicates that the character following is not functional but is meant to be displayed. The first instance of one of these display characters works correctly and only displays the quotation mark or comma, but subsequent instances of \" or \ cause both characters to display and print.

Example:

  {if BookMarkName = "test" "\"True\"" "\"False\""}

  True result:  "True\"    Desired result "True"
  False result: "False\"   Desired result "False"
				

For additional information, please see the following Microsoft Knowledge Base article:

197837 WD2000: Incorrect Results Using Backslash in Conditional Merge


Modification Type:MajorLast Reviewed:12/6/2000
Keywords:kbbug KB193709