Thread: Using IF and OR
View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Brenda A. Reid Brenda A. Reid is offline
external usenet poster
 
Posts: 8
Default Using IF and OR

Worked great -- ever so greatful . . .
Brenda

"Peter Jamieson" wrote in message
...
In this case the simplest thing is something like

{ IF "{ REF restrictions \*Upper }" = "N" "There are no...."
"Restrictions..." }

For the double quotes within the IF result text, there are a few options,
e.g.
a. use two single quotes
b. use { QUOTE \" }
c. use { SET q { QUOTE \" } } at the beginning of your document and { q }
(or { REF q }) when you need a "

(make sure each pair of {} are the special field braces you can insert
using ctrl-F9).

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Brenda A. Reid" wrote in message
...
I have a template that askes this question:

{ set restrictions { FILLIN "Are there any restrictions on objects? [ y
/ n ]" \* MERGEFORMAT }}


Because of the fillin field answer being case sensitive, I'd like to be
able to simplify my coding. Would like to be able to say something like
this:

{ if restrictions = n OR N "There are no restrictions on the objects and
powers of the Company." "Restrictions on the objects and powers of the
Company are as set forth in Schedule "A" hereto." \* MERGEFORMAT }



How would I do it if it's at all possible? Also, how would I use quotes
within quotes, i.e. Schedule "A" in the second part of the response?



Tks . . .