or function

  • Thread starter Thread starter Yang
  • Start date Start date
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
 
Actually I'm getting this error.
Error! Unknown op code for conditional.

Any idea?
 
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

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
At least not out of a text medium such as these newsgroups; you can copy and
paste fields within Word.
 
Thanks for the reminder.. Yes, I'm using CTRL+F9 to put the {}
and below is my code
{If {=({IF{MERGEFIELD Grade}="A" 1 0} + {IF{MERGEFIELD Grade}="B" 1 0})}>=1
"True" "False"}

(I typed it since I cannot copy from Word)

Please help.
10s.
 
You can copy field constructions using the macro on my web site
http://www.gmayor.com/export_field.htm
however the problem here is incorrect spacing. What you should have is:

{ IF{ =({ IF{ Mergefield Grade } = "A" 1 0 } + { IF{ Mergefield Grade } =
"B" 1 0 }) } >= 1 "True" "False" }

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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

Similar Threads


Back
Top