View Single Post
  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Using OR statements in an If, then, else statement

See the example at http://www.gmayor.com/formatting_word_fields.htm -
Testing for a value in one of several fields
Instead of referring to three fields refer to the same one three times with
the three different conditions.
--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Gary wrote:
I'm trying to create an "if, then, else statement". I understand the
basics of If {mergefield XX} = "A" "Print this" "Dont print this".

How do I have the statement search for multiple criteria..If
{mergefield XX} = "A or B or C" "Print this" "Dont print
this"...without having to create a statement for each variable
individually.