Tattoued Posted March 25, 2010 Share Posted March 25, 2010 Me again. I need to tell FusionPro that I want to make a replacement in the field for "First Name" to be "Friend" only if the content is LESS than two characters. For instance, if the name is "Al" or something, that's fine, but if its entered in Excel as an initial only, I don't want my letter to come out as "Dear R". I've been trying to get the script right and I can't seem to find the code for "less than two characters". Help? Maybe I'm not looking in the right place for code on my own! Link to comment Share on other sites More sharing options...
lance Posted March 25, 2010 Share Posted March 25, 2010 if (Len(Field("First Name")) < 2) return "Dear Friend"; else return "Dear " + Field("First Name"); Link to comment Share on other sites More sharing options...
Tattoued Posted March 26, 2010 Author Share Posted March 26, 2010 Ohhhh I was going about it the wrong way... I was trying to find an integer to replace "any" character, and should have been looking at the line length instead, since it wasn't a specific character. *sigh* I need to get to a webinar or something on java. Thanks so much! It worked perfectly of course! I spent 4 hours trying to figure it out and read the whole chapter on rules in FusionPro and just couldn't get it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.