Hi
I have an expression that works great. A user fills out an Appit form where they are presented with 5 text boxes for donor names. They are only required to fill out the first box, but if there are multiple donors they can fill out the others (up to 5). Most of these forms will have 2 donor names, but sometimes more or just one. The expression works great as it concatenates the names with a comma between each one. This has been working perfectly for many months. Now, the business wishes for the last comma to be the word "and" instead of the comma. I'm scratching my head trying to figure out the simplest soltuion with the expression that I already have and how it can be changed to accomodate this request. Here is my expression. I hope that someone could share their insights. Thanks for looking!
Replace ( dataRawParagraph, *Donor Names*, Concatenate ( tbPrimaryDonororEntityName, If ( Is Not Blank ( tbSecondaryDonorNamesA ) , , tbSecondaryDonorNamesA, (Empty String) ) , If ( Is Not Blank ( tbSecondaryDonorNamesB ) , , tbSecondaryDonorNamesB, (Empty String) ) , If ( Is Not Blank ( tbSecondaryDonorNamesC ) , , tbSecondaryDonorNamesC, (Empty String) ) , If ( Is Not Blank ( tbSecondaryDonorNamesD ) , , tbSecondaryDonorNamesD, (Empty String) ) ) )