Mutiple Conditions with a Nested IF statement

S

Sal

I would like to test whether multiple (more than 2)
conditions are met before returning the true value - I
have tried to do this with nested "AND" and "COMPARE"
statements nested in IF statements (as below), however
they only seem to work where there are only two
conditions - any more it always returns the false value

Can anyone suggest how I can overcome my problem?

{IF {=AND({COMPARE {MERGEFIELD One}= "1"} , {COMPARE
{MERGEFIELD Two} said:
"2"})} = 1 "Hello" ""}

Thanks

Sal
 
G

Graham Mayor

Use a nested construction as follows:

{IF{Mergefield One} = 1 "{IF {Mergefield Two} <> "" "{IF{Mergefield Three} >
2 "Hello" ""}" ""}" ""}


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