hark Posted November 26, 2012 Share Posted November 26, 2012 I want it to read like this for example: <<First Name>>, You Could Win $1000! or just You Could Win $1000! The problem is the comma. Some of the First Name fields are unpopulated and in that case, the comma is not needed. How do I write a rule to add the comma if there is data in the First Name field, but not add it if the field is empty? I've tried searching for code and learning something on my own and instead I've spent too much time trying to wing it. Project is due! Thanks for any help. Quote Link to comment Share on other sites More sharing options...
dreimer Posted November 26, 2012 Share Posted November 26, 2012 if (Field("Your Field") != "") return Field("Your Field") + ", You Could Win $1000!"; else return "You Could Win $1000!"; Quote Link to comment Share on other sites More sharing options...
hark Posted November 30, 2012 Author Share Posted November 30, 2012 hey man, you rock! I'm new at the scripting thing so I really appreciate the reply. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.