compare mergefields

K

ken arthur

I want to compare two mergefields and if either of them
are equal to a value I want to do this if not do this.
I assume it will look something like this
if fieldA= value or if fieldB = another value then do
thisA if not do thisB

I cannot seem to get the syntax correct for using =or
compare.
Is there anything special I should do to enter all this
or can you offer any other suggestion as to how to set
this up.
Thanks.
 
P

Peter Jamieson

You can use

{ IF { =or({ COMPARE { MERGEFIELD FieldA } = "value" },{ COMPARE {
MERGEFIELD FieldB } = "another value" }) } = 1 "do thisA" "do thisB" }

where all the {} are the special field braces you can insert using ctrl-F9.

You can probably simplify this a bit using e.g.

{ IF "{ COMPARE { MERGEFIELD FieldA } = "value" }{ COMPARE { MERGEFIELD
FieldB } = "another value" }" <> "00" "do thisA" "do thisB" }
 

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