Jump to content

Empty field at beginning of sentence


Recommended Posts

I have a rule for the recipient's name that is inserted at the beginning of a sentence, to make it proper case:


var Var1 = "RecipientFirstName";

return ToTitleCase(Field(Var1))+",";


However, it seems that field is empty from time to time, causing the sentence to begin with a comma, then the word "space".


I'd like to add to that rule above, with another rule that says if RecipientFirstName is empty, return only the word "Space"


I should know this by now....

Link to comment
Share on other sites

That's close, but now when it IS populated it only returns the rule name, not the actual recipient's first name.


I need it to say


Strido, space is limited


But if that first name (strido) is missing, it returns:


Space is limited

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...