#1   Report Post  
Posted to microsoft.public.word.docmanagement
Yang Yang is offline
external usenet poster
 
Posts: 6
Default or function

How to use "OR" function in field code If else statement?

  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default or function

Use another If...then...Else in place of the negative response.

{ IF A = B "A equals B" { IF A = C "But A does equal C" "A does not equal
either B or C" } }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"Yang" wrote in message
...
How to use "OR" function in field code If else statement?



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default or function

See also 'Testing for a value in one of several fields' at
http://www.gmayor.com/formatting_word_fields.htm which shows a method that
is easier to manage when there are lots of choices to consider.

--

Graham Mayor - Word MVP

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




Doug Robbins - Word MVP wrote:
Use another If...then...Else in place of the negative response.

{ IF A = B "A equals B" { IF A = C "But A does equal C" "A does not
equal either B or C" } }


"Yang" wrote in message
...
How to use "OR" function in field code If else statement?



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Yang Yang is offline
external usenet poster
 
Posts: 6
Default or function

Actually I'm getting this error.
Error! Unknown op code for conditional.

Any idea?

"Graham Mayor" wrote:

See also 'Testing for a value in one of several fields' at
http://www.gmayor.com/formatting_word_fields.htm which shows a method that
is easier to manage when there are lots of choices to consider.

--

Graham Mayor - Word MVP

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




Doug Robbins - Word MVP wrote:
Use another If...then...Else in place of the negative response.

{ IF A = B "A equals B" { IF A = C "But A does equal C" "A does not
equal either B or C" } }


"Yang" wrote in message
...
How to use "OR" function in field code If else statement?




  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default or function

You haven't used CTRL+F9 for the field brackets {}. You cannot simply copy
and paste fields.

--

Graham Mayor - Word MVP

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



Yang wrote:
Actually I'm getting this error.
Error! Unknown op code for conditional.

Any idea?

"Graham Mayor" wrote:

See also 'Testing for a value in one of several fields' at
http://www.gmayor.com/formatting_word_fields.htm which shows a
method that is easier to manage when there are lots of choices to
consider.

--

Graham Mayor - Word MVP

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




Doug Robbins - Word MVP wrote:
Use another If...then...Else in place of the negative response.

{ IF A = B "A equals B" { IF A = C "But A does equal C" "A does not
equal either B or C" } }


"Yang" wrote in message
...
How to use "OR" function in field code If else statement?





  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default or function

At least not out of a text medium such as these newsgroups; you can copy and
paste fields within Word.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Graham Mayor" wrote in message
...
You haven't used CTRL+F9 for the field brackets {}. You cannot simply copy
and paste fields.

--

Graham Mayor - Word MVP

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



Yang wrote:
Actually I'm getting this error.
Error! Unknown op code for conditional.

Any idea?

"Graham Mayor" wrote:

See also 'Testing for a value in one of several fields' at
http://www.gmayor.com/formatting_word_fields.htm which shows a
method that is easier to manage when there are lots of choices to
consider.

--

Graham Mayor - Word MVP

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




Doug Robbins - Word MVP wrote:
Use another If...then...Else in place of the negative response.

{ IF A = B "A equals B" { IF A = C "But A does equal C" "A does not
equal either B or C" } }


"Yang" wrote in message
...
How to use "OR" function in field code If else statement?





Reply
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
Did they fix the PDF function MJ Schaer[_2_] New Users 13 March 16th 08 05:14 PM
CUT function. Boots Microsoft Word Help 1 October 3rd 07 09:01 PM
Form function cjledu Microsoft Word Help 1 August 14th 07 03:10 PM
Function key tatanka Microsoft Word Help 3 December 12th 06 07:23 AM
Help function guru perplexe New Users 1 April 9th 05 06:49 PM


All times are GMT +1. The time now is 04:14 AM.

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

About Us

"It's about Microsoft Word"