Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Arden Arden is offline
external usenet poster
 
Posts: 8
Default If-then-else with "or" command

The goal is I am wanting to use an If-then-else statement where the If is
compared to a group of 3 values and I haven't found how to do this in one
statement. For example, I think it should look like: If code = (1 or 2 or 3)
then "TEXT1" "TEXT2". I don't want to use If code = 1 "TEXT1" "If code = 2
"TEXT1" ... etc for a nested if with the same text to maintain multiple
times.

When I posed this question to an online expert, I was directed to the "=OR"
function with the COMPARE statement. It looks like it should work, but I
can't get Microsoft's example code from Help to work: { IF { = OR ( { COMPARE
{ MERGEFIELD CustomerNumber } = 4 }, { COMPARE { MERGEFIELD CustomerRating }
= 9 } ) } = 1 "Credit not acceptable" "Credit acceptable"}

What advice can you offer? Thanks!

 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the "AutoSum" command in Mircosoft Office Work 2007 Rickh957 Microsoft Word Help 11 June 26th 09 03:42 PM
Missing "Page Setup" command from File menu Mike Microsoft Word Help 2 March 24th 09 05:30 PM
Can you change the order of tabs in "Format Picture" command? atomspam Microsoft Word Help 0 July 25th 07 05:28 AM
How do I "reset" the FIND command under EDIT to use page scrolling Aunt Lorraine Microsoft Word Help 2 April 3rd 07 07:20 PM
In Word and Excel, the command "File/Save as" does not respond Word One New Users 1 April 25th 06 05:03 AM


All times are GMT +1. The time now is 01:37 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"