benjamenus
Programmer
Hi
I have three merge fields (Title, FirstName, Surname) which I want to appear in my letter e.g.
Dear <<Title>> <<FirstName>> <<Surname>>
However, sometimes the Title is blank. On these occassions I'd like the whole name string (i.e. all three fields) to be replaced with "Sir/Madam".
The format seems to be:
Dear {If {Title MERGEFIELD}="" "Sir/Madam" {Title MERGEFIELD}}
Basically, if Title is blank insert "Sir/Madam" else insert Title.
However, what I want it to do on the 'else' is insert the Title, FirstName and Surname. But when I put all three in the 'If' statement, only the first comes out - seemingly because a space is used to separate the items as well as the conditions.
Is there a way of grouping the three merge fields?
Cheers
P.S. I've already achieved what I'm after by using three 'If' statements, but I'm sure there must be an easier way of achieving this along the lines described above.
I have three merge fields (Title, FirstName, Surname) which I want to appear in my letter e.g.
Dear <<Title>> <<FirstName>> <<Surname>>
However, sometimes the Title is blank. On these occassions I'd like the whole name string (i.e. all three fields) to be replaced with "Sir/Madam".
The format seems to be:
Dear {If {Title MERGEFIELD}="" "Sir/Madam" {Title MERGEFIELD}}
Basically, if Title is blank insert "Sir/Madam" else insert Title.
However, what I want it to do on the 'else' is insert the Title, FirstName and Surname. But when I put all three in the 'If' statement, only the first comes out - seemingly because a space is used to separate the items as well as the conditions.
Is there a way of grouping the three merge fields?
Cheers
P.S. I've already achieved what I'm after by using three 'If' statements, but I'm sure there must be an easier way of achieving this along the lines described above.