if then else

R

Russ

I am trying to use the "if then else" command in a mail merge. Howerver, I
want the command to be: if "field x" or "field y" is equal to "value" then
.... or ...

is this possible and how would i go about it?
thanks
 
G

Graham Mayor

The following construction should do the trick - in the example the result
for either being true is ResultA if neither is true ResultB

{IF{Mergefield X} = "value" "ResultA" "{IF {Mergefield Y} = "value"
"ResultA" "ResultB"}"}

Each pair of field boundaries is set with CTRL+F9

The syntax used here is:
IF x = "value" ResultA
IF not then
IF y = "value" ResultA
Otherwise ResultB

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top