View Single Post
  #9   Report Post  
Greg Maxey
 
Posts: n/a
Default

Lara,

These are ugly at best :-)

You could use something like:

{ IF { IF { County }="Pinellas""Set"{ IF { County }=" Hillsborough""Set"{ IF
{ County }="Lake""Set"{ IF { County }="Orange""Set"{ IF {
County }="Brevard""Set"{ IF { County }="Indian River""Set"{ IF {
County }="Volusia""Set"{ IF {
County }="Osceola""Set" } } } } } } } }="Set"{ IncludeText "C:\\Your
Folder\\Your File Name.doc"}"Test Failed/Leave Blank"}

"Set" is just an arbitary word I picked.



--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

Lara Z wrote:
Yes, obviously, but if this is a valid operator what is the syntax
for using it - either in general or with my example, as everything I
have tried has not worked...?? I tried the following and it does not
work, i.e., does not return "Test Positive" or "Test Negative" .

{ IF { = OR ({MERGEFIELD "County"}="Hillsborough", {MERGEFIELD
"County"}="Pinellas")} =1 "Test Positive" "Test Negative"}


"smcash" wrote in message
...
I'm new to this stuff, but as far as I can tell the operator is
simply: Or

-smcash




"Lara Z" wrote:

I am trying to code a merge document that will insert an additional
two-page
document if the 'COUNTY' field is one of eight counties. The
additional document is the same for all eight counties. In
WordPerfect this could be done simply with the SWITCH/ENDSWITCH
construct. I know there is no equivalent in Word, but is there any
easier way to do this than doing eight
back-to-back IF statements with the same (redundant) two pages of
text inserted in each "then" part of the IF statement? Is there an
OR operator in
Word that might help accomplish this?