Merging conditional fields

S

s

Hello,

Is there any way to merge fields based on conditions, e.g.
if the field for <<CFOName>> is empty, the field will be
filled with <<AltName>>?
 
G

Greg Maxey

S,

Something like {IF {MERGEFIELD CFOName} = """{MERGEFIELD ALTName}{MERGEFIELD
CFOName}} should work.
 
G

Graham Mayor

You have sneaked an extra " in there
{IF {MERGEFIELD CFOName} = "" {MERGEFIELD ALTName} {MERGEFIELD CFOName}}
or (I prefer to use speech marks even with fields where they are not
strictly necessary as it makes it easier to debug later)
{IF {MERGEFIELD CFOName} = "" "{MERGEFIELD ALTName}" "{MERGEFIELD CFOName}"}
should do it.

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


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

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