Nested Fields in IF Statement Always Update in WinWordLast reviewed: September 19, 1997Article ID: Q74053 |
The information in this article applies to:
SUMMARYAll 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="yes" "{fillin "response one"}" "{fillin "response two"}"}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 INFORMATIONThis 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 = "yes" "response one" "response two"}}prompts you with "response one" if test is "yes", and "response two" if test is "no". This allows conditional fillin prompts without getting multiple prompts. Reference(s): "Microsoft Word for Windows and OS/2 Technical Reference," page 335
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |