= AND

R

RUCerius

MS Word Help gives several great examples of using IF...THEN...ELSE with the
=AND operator but I have yet to find a way to compose the statement. I keep
getting: Error! Unknown op code for conditional

As far a 'free' help the closest I have come is Hans from Woody's Lounge who
gave me some great tips.
http://www.wopr.com/cgi-bin/w3t/showflat.pl?Cat=&Board=wrd&Number=504396

Any MVP's out there who can explain to a MS Word Mail Merge newbie how I can
use the =AND and the =OR constructs and also any gotcha's to be careful of?
Someone said you can't go beyond 1 =AND statement in an IF...THEN...ELSE.
(Of course I'd be happy to get 1 to work!).

Here is my 'field construction' as it stands now:

{ IF { =AND ({ COMPARE { MERGEFIELD ID } >= 200000},{ COMPARE { MERGEFIELD
ID } <= 300000} ) } = 1 "OK" "BAD" }
TIA
 
P

Peter Jamieson

It looks OK and works here, but all the field braces {} have to be the sort
you can insert using ctrl-F9. If they already are, what I would suggest is
that you selection each expression in turn (e.g. { MERGEFIELD ID }, {
COMPARE { MERGEFIELD ID } >= 200000 } then use right-click and toggle field
codes to see the result of that part of the whole construct to see if you
can detect which part is causing the problem.

Peter Jamieson
 

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