bypassing empty merge fields

M

Martin Post

Hello,

I got a mailmerge with an excel document to make labels, like:

«MrMs» «Firsname» «Lastname»

The problem is when the first name is not mentioned it leaves a extra blank
space on the label, like:

Mr. Smith, instead of:
Mr. Smit

Is there a function to ignore field Firsname if it's empty?

Thanks in advance,

Martin
 
P

Peter Jamieson

use an IF field, e.g.

{ MERGEFIELD MrMs } { IF { MERGEFIELD Firstname } = ""
"" " { MERGEFIELD Firstname }" }{ MERGEFIELD Lastname }

All the {} need to be the special field codes you can insert using ctrl-F9.

Peter Jamieson
 
Top