No. He is showing you how Mailmerge fields are nested in IF fields to
perform AND/OR logic.

Signature
Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in gmaxey@whamspammvps.org
> Are you saying mailmerge does not support AND or OR Statements?
>
>> { IF { MERGEFIELD Appt_Provider} = "Provider1" "Yes" { IF {
>> MERGEFIELD Appt_Provider} = "Provider2" "Yes" "No" } }
The IF field doesn't support AND and OR. (Have a look in Word Help for the
syntax of these fields!)
If you prefer to use AND and OR explicilty, you can use the following
approach
Use { COMPARE } to make the comparisons, e.g.
{ COMPARE a = b }
gives 1 if a = b and 0 if a <> b
then use the and and or functions within the { = } field to do the logic:
{ =and(a,b) } is 0 if a is 0 or b is 0, and 1 if a and b are 1
then wrap that inside an IF to give the result you need
{ IF { =and(a,b) } = 1 "result if both a and b are non-zero" "result if
either a or b is 0" }
e.g. to take your example,
{ IF { =or({ COMPARE { MERGEFIELD Appt_Provider } = "Provider1" },
{ COMPARE { MERGEFIELD Appt_Provider } = "Provider 2" }) } = 1 "Yes",
"No" }
(I think!)
You can nest ors and ands within the { = } field but notice that in the case
of multiple ors you can should also be able to use
{ IF { ={ COMPARE { MERGEFIELD Appt_Provider } = "Provider1" }+
{ COMPARE { MERGEFIELD Appt_Provider } = "Provider 2" } } > 0 "Yes", "No" }
Not the way I'd design the "field language" but there you go.

Signature
Peter Jamieson
> Are you saying mailmerge does not support AND or OR Statements?
>
> >{ IF { MERGEFIELD Appt_Provider} = "Provider1" "Yes" { IF { MERGEFIELD
> >Appt_Provider} = "Provider2" "Yes" "No" } }
Newbie@msn.com - 06 Aug 2004 12:54 GMT
Thanks for your help. Trying looking for it in Word Help but could not
find it. Would appreciate if you could steer me to the help screen
Given the complexity of the statement I think I will use the method
listed in a previous reply
I assume that the Select Case is also not supported in a mail merge.
I tried searching help and all I get is stuff on changing from
sentence case to title case
>The IF field doesn't support AND and OR. (Have a look in Word Help for the
>syntax of these fields!)
[quoted text clipped - 32 lines]
>
>Not the way I'd design the "field language" but there you go.
Peter Jamieson - 06 Aug 2004 15:05 GMT
> Trying looking for it in Word Help but could not
> find it. Would appreciate if you could steer me to the help screen
It depends on the version, but if you look at the Help Table of Contents,
the fields are generally covered in an item called "Field Types and
Switches" near the bottom of the contents list.
> I assume that the Select Case is also not supported in a mail merge.
> I tried searching help and all I get is stuff on changing from
> sentence case to title case
Correct.

Signature
Peter Jamieson
> Thanks for your help. Trying looking for it in Word Help but could not
> find it. Would appreciate if you could steer me to the help screen
[quoted text clipped - 42 lines]
> >
> >Not the way I'd design the "field language" but there you go.