I am using Word XP and would like to create an IF field statement with
an "AND"
For example an ASK field is used to create a bookmark. An IF field is
then used to determine if a {FIELD}is = to text and if the bookmark is
equal to specific text. If both values are correct, then an
INCLUDETEXT is used to include a word document.
I can not figure out how to use the AND.
{ASK lors "Type 1 for Long Letterhead or 2 for Short Letterhead" \d
"2"}{IF{MERGEFIELD file_notes }="Miami" **AND SHOULD GO HERE**{REF
lors \h}="2"{INCLUDETEXT "C:\\letterhead.doc" \* MERGEFORMAT}" ""}
I would appreciate any help.
Thanks.Amy
Peter Jamieson - 01 Dec 2003 13:39 GMT
The simplest methof is probably
If condition-1 then
If condition-2 then
includetext
end if
end if
which being translated into field codes might be
{ IF { MERGEFIELD file_notes } = "Miami"
"{ IF { REF lors } = "2"
"{ INCLUDETEXT "C:\\letterhead.doc" }"
""
}"
""
}"
(the layout outside the quoted strings is not particularly important - this
can all be on one line in your document).
--
Peter Jamieson - Word MVP
> I am using Word XP and would like to create an IF field statement with
> an "AND"
[quoted text clipped - 12 lines]
>
> Thanks.Amy