Word 2013 field code Nested IF statement

Joined
Jun 5, 2017
Messages
1
Reaction score
0
Hello, could someone please help me with an if statement?

{ IF {MERGEFIELD CODE} <> "99", "101", "111", "222", or "555" "show me this content." ""}


I want a sentence ("show me this content.") to appear if the code does not equal to 99, 101, 111, 222, or 555. If the code does equal to one of those 5, I do not want the sentence to print.

Thanks for your help.
 

macropod

Microsoft MVP
Joined
Mar 2, 2012
Messages
580
Reaction score
50
Try:
{IF{MERGEFIELD CODE} <> 99 {IF{MERGEFIELD CODE} <> 101 {IF{MERGEFIELD CODE} <> 111 {IF{MERGEFIELD CODE} <> 222 {IF{MERGEFIELD CODE} <> 555 "show me this content."}}}}}
 

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