That being said, you can certainly simplify things. You consolidate your two "header" rules into one:
var XDF = new ExternalDataFileEx("PostcardContent.txt", "\t");
return XDF.GetFieldValue(XDF.FindRecord(0, Field('Header')), 1) || Field('HeaderCustom');
OK got stuck with this lol...Is it possible to add a replace substring to the code above? I know how to do this as two separate rules, but can it be done as one to simplify code further?
This is what I have for HeaderReplace rule...
var s = Rule("Rule Header");
s = ReplaceSubstring(s, "[COMMUNITY NAME]", Field("Community Name"));
s = ReplaceSubstring(s, "[RSVP]", Field("RSVPPhone"));
return s;