That worked great, but i also need some text replaced in the return line. The code below is what I had before I added the If statement. They all worked, I just need to incorporate the ReplaceSubstrings into the If statement.
var a = Field("custom text");
a = ReplaceSubstring(a, "=" , "<br />");
a = ReplaceSubstring(a, "&" , "&");
a = ReplaceSubstring(a, "\\" , "|");
return a;
The code I have now is below. I could figure out how to incorporate one replacesubstring at a time.
var a = Field("custom text")
var b = "Custom Message Here";
if (Field("message type") == "custom")
return ReplaceSubstring(a, "=", "<br />");
else if (Field("message type") == "default")
return ReplaceSubstring(b, "=", "<br />");
Thanks so much for your help with this!