DVincent Posted December 23, 2011 Share Posted December 23, 2011 Good afternoon everyone, I have a business card that contains a phone and fax number on the same line which would be separated by a "/" Neither number is mandatory so I need a script that will show the "/" only when both numbers are in use. Also the phone number when used needs to have a "Tel. " in front of it and the fax number needs to have a "Fax " in front of it. Any help would be greatly appreciated Link to comment Share on other sites More sharing options...
FreightTrain Posted December 23, 2011 Share Posted December 23, 2011 DVincent Here you go: if ((Field("Phone") != "") && (Field("Fax") != "")) return Field("Phone")+"/"+Field("Fax"); else if ((Field("Phone") != "") && (Field("Fax") == "")) return Field("Phone"); else if ((Field("Phone") == "") && (Field("Fax") != "")) return Field("Fax"); else return ""; Link to comment Share on other sites More sharing options...
DVincent Posted December 23, 2011 Author Share Posted December 23, 2011 Works great. Thanks a lot Richard. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.