
Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
Thanks so much.
st.
> You want the City in CAPs correct?
>
[quoted text clipped - 13 lines]
> >
> > I hope my question is clear. TIA.
But, can I have multi-elses? I tried, and got error: Unknown op code for
conditional:
{IF{MERGEFIELD Office}=1 "Seattle" {IF{MERGEFIELD Office}=2 "Portland"
{IF{MERGEFIELD Office}=3 "Fresno" {IF{MERGEFIELD Office}=4 "Tucson"}
I see that there are more left wavy brackets than right ones, and that I
haven't concluded the equation (what if not 1, 2, 3, or 4), but I don't
understand. Could someone help or direct me to a good rudimentary
explanation? TIA
> You want the City in CAPs correct?
>
[quoted text clipped - 13 lines]
> >
> > I hope my question is clear. TIA.
Greg Maxey - 10 Mar 2005 21:48 GMT
Yes you can have multiple IF conditions.
{ IF { Test }="1""SEATLLE"{ IF{ Test }="2""PORTLAND"{ IF {
Test }="3""FRESNO"}}}

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> But, can I have multi-elses? I tried, and got error: Unknown op code
> for conditional:
[quoted text clipped - 28 lines]
>>>
>>> I hope my question is clear. TIA.
Greg Maxey - 10 Mar 2005 21:55 GMT
zSpash,
Sorry for the clipped reply earlier. My wife was assigning me a chore :-)
You can nest the additional conditions as I showed you in my last post
(replace Test with your mergefield name) or in this case you can simply gang
them together
{IF{TEST}="1""SEATTLE"}{IF{TEST}="2""PORTLAND"} etc.

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> But, can I have multi-elses? I tried, and got error: Unknown op code
> for conditional:
[quoted text clipped - 28 lines]
>>>
>>> I hope my question is clear. TIA.
zSplash - 10 Mar 2005 22:30 GMT
Thanks, Greg. Your earlier example was fine.
So, now I wonder, can I compare 3 fields from the data source and based on
the comparison, "get" one of the fields? (That is, consider 3 unique
fields: num3, num2, num1. If num3 is empty, check num2; if num2 is empty,
"get" num1.) Do I use "IF THEN" or something else?
It's just a little sad trying to "get the syntax (i.e., the demanded # of
curly braces, etc.)" for the mail merge Word fields when things are so
straight-forward in VBA.
TIA
> zSpash,
>
[quoted text clipped - 37 lines]
> >>>
> >>> I hope my question is clear. TIA.
Greg Maxey - 10 Mar 2005 22:53 GMT
zSplash,
Not tested, but try something like:
{ IF { NUM1 }<>""{ NUM1 }{ IF{ NUM2 }<>""{ NUM2 }{ NUM3}}}

Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
> Thanks, Greg. Your earlier example was fine.
>
[quoted text clipped - 57 lines]
>>>>>
>>>>> I hope my question is clear. TIA.
zSplash - 11 Mar 2005 00:31 GMT
Thank you so much, Greg. Your help has been outstanding (and worked)!
st.
> zSplash,
>
[quoted text clipped - 63 lines]
> >>>>>
> >>>>> I hope my question is clear. TIA.