Hello,
I am configuring a simple if else statement to display content based on data being passed in targetdata in the workflow. Here is my statement. I have tested the "if" part alone and it works fine but once I add in the Else, I get the following error.
<% if ( targetData.segment == "A" ) { %>
HELLO
<% } %>
<% else { %>
GOODBYE
<% } %>
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
try this
<% if ( targetData.segment == "A" ) { %>
HELLO
<% } else { %>
GOODBYE
<% } %>
Thanks,
David
Hi,
try this
<% if ( targetData.segment == "A" ) { %>
HELLO
<% } else { %>
GOODBYE
<% } %>
Thanks,
David
Thank you David. That worked! It seems on V8, the function is not correct. I took it directly from Adobe here-
<% else { %>
Insert content here
<% } %>
Views
Replies
Total Likes
Views
Likes
Replies