OR statement for more than 2 expressions

D

dom

Hi,

I would like to use the "OR field code" (probably not using the correct
terminology) for 3 expression. It works fine for 2 but can't get it to work
with 3. I've used it in my previous job so I know it's possible, but can't
seem to find a sample "script" anywhere. Can anyone help?

This is what I have (which doesn't work):
{IF {= OR ({MERGEFIELD “LetterTypeâ€}=â€Aâ€, {MERGEFIELD “LeterTypeâ€}= “Bâ€,
{MERGEFIELD “LeterTypeâ€}= “Câ€)} = 1 “TEXT 1†“TEXT2â€}

What I want is to print TEXT 1 if LetterType = A or B or C.

Thanks in advance for your help.
Dom
 
G

Graham Mayor

Try

{ IF{ =({ IF{ Mergefield "LeterType" } = "A" 1 0 } + { IF{ Mergefield
"LeterType" } = "B" 1 0 } + { IF{ Mergefield "LeterType" } = "C" 1 0 })} = 1
"Text1" "Text2" }

and change the smart quotes to straight quotes.

Shouldn't that be LetterType ?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
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