Jump to content

Javascript Syntax Error - FusionPro

Recommended Posts

I have a rule that looks at 2 fields to determine what to return.


I'm getting a Javascript syntax error message on the following rule and for the life of me, I do not see it.


if ((Rule("RuleEmailFirstName") != "") && Rule("RuleEmailLastName") != ""))
return Rule("RuleEmailFirstName") + "." + Rule("RuleEmailLastName") + "@" + Field("Email Domain");
else if ((Rule("RuleEmailFirstName") != "") && (Rule("RuleEmailLastName") == ""))
return Rule("RuleEmailFirstName") + "@" + Field("Email Domain");
else if ((Rule("RuleEmailFirstName") == "") && (Rule("RuleEmailLastName") != ""))
return Rule("RuleEmailLastName") + "@" + Field("Email Domain");
return "";


Will someone please help me and point out what I'm doing wrong?

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...