Hi. Can anyone share with me a switch or method to trim a character out of a
mergefield from the output if it exists in the source. To illustrate. I
have a sentence "...thanks to the attendees {MERGEFIELD
attendees_name_combined}."
Unfortunately if attendees_name_combined is "Mr. and Mrs. Smith, Jr.", the
output becomes "...thanks to the attendees Mr. and Mrs. Smith, Jr.."
I want to trim the extra period (.) from the output if it exists in this
instance (or suppress the final period. I was hoping for a switch or an if
.. then statement just for the final period, but so far I have not been able
to figure out a solution.
macropod - 20 Apr 2006 11:58 GMT
Hi,
Try an IF test on the MERGEFIELD, coded as:
{IF{MERGEFIELD attendees_name_combined}= "*." "{MERGEFIELD
attendees_name_combined}" "{MERGEFIELD attendees_name_combined}."}
and deleting the "." from your document's text.
Cheers
> Hi. Can anyone share with me a switch or method to trim a character out of a
> mergefield from the output if it exists in the source. To illustrate. I
[quoted text clipped - 8 lines]
> .. then statement just for the final period, but so far I have not been able
> to figure out a solution.
Non-profit whipping boy - 21 Apr 2006 22:43 GMT
Perfect! Thank you!
> Hi,
>
[quoted text clipped - 20 lines]
> able
> > to figure out a solution.