Conditional Tags inserting a space

anna_uhl

New Member
Hej'all,

Since in Germany everyone is so proud of their title, we often use them in formal adresses in e-mails. I was trying to insert a conditional tag, which would insert a space between the salutation and the name, if the person does not hold a title, thus the tag title is empty.

It should look like this:
Dear Mr. Dr. Ritter - [Salutation][Title][Name]
if the person has a title, and like this:
Dear Mr. Schulz - [Salutation] [Name]
if the person doesn't hold a title.

The Code I was trying was:
[Salutation]<IF [[Title]] >= ""> , <ELSE>[[Title]], </IF>[Name]

Unfortunately I always get the "," instead of the space I wanted between the Salutation an the Name.

I know this is a complicated matter and not necessary in English, since you scarcely ever use the title in the salutation of an E-Mail. But I sure hope you can help me.

Thanks,
Anna
 

stanbusk

Administrator
Staff member
Try:

[Salutation]<IF [[Title]] <>""> [Title]</IF> [Firstname]

Does it give the result you expect?
 
Top