ID: Q117696
6.00 6.00a 6.00c WINDOWS kbusage kbdocerr
The information in this article applies to:
The Word 6.0 for Windows Readme Help file incorrectly shows the following sample SET field:
{if {mergefield state} = "CA" {set phone "1-415-555-1234"} {set
phone "1-415-555-4237}}
Help ought to show:
{set phone {if {mergefield state} = "CA" "1-415-555-1234" "1-415-
555-4237"}}
The first example is wrong because fields update from left to right, and
from the inside to the outside. When two fields are placed inside an IF
field, the left-most field is updated first, and its result is replaced by
the second field. Thus, the IF field will use the most recent value of the
SET field.
For additional information, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q97791
TITLE : SET Fields Within IF Field Evaluate Incorrectly
KBCategory: kbusage kbdocerr
KBSubcategory:
Additional reference words: 6.00 6.00a docerr doc err documentation error
word6 6.00c winword on-line online help incorrect set field
Version : 6.00 6.00a 6.00c
Platform : WINDOWS
Last Reviewed: February 5, 1998