Microsoft KB Archive/74053

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for Windows versions 1.0, 1.1, 1.1a, 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c

SUMMARY
All fields nested within an IF statement are updated during the evaluation of that IF statement, regardless of whether the IF statement proves TRUE or FALSE. In the following example

{IF test=&quot;yes&quot; &quot;{fillin &quot;response one&quot;}&quot; &quot;{fillin &quot;response two&quot;}&quot;} both fillin fields are updated, prompting you twice. Only one prints, based on the result of the IF statement. This happens because Word for Windows updates fields from the inside out. Both of the fillin fields get updated before the IF statement test is performed. This functionality is by design.

MORE INFORMATION
This behavior can create challenges if you need to selectively perform FILLIN or ASK statements during a print merge. You can do such tasks by using a different logical structure than the one above. The following example

{fillin {if test = &quot;yes&quot; &quot;response one&quot; &quot;response two&quot;}} prompts you with &quot;response one&quot; if test is &quot;yes&quot;, and &quot;response two&quot; if test is &quot;no&quot;. This allows conditional fillin prompts without getting multiple prompts. Reference(s):

&quot;Microsoft Word for Windows and OS/2 Technical Reference,&quot; page 335
 * }

-

Last reviewed: September 19, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.