Writing conditions based on personalization blocks
Hello there,
We have a requirement wherein we would like to choose the delivery subject based on the availability of value calculated by a personalization block for a recipient.
if ('%><%@ include view="<a_personalization_block>" %><%' != '') {
<%@ include view="<a_personalization_block>" %>
} else {
...
}
Have tried the above code block, but it fails. Is it possible to expand a personalization block for a recipient via js code (rather than via scriptlet expressions)?
Are there any alternatives to achieve the above?
Thank you!
Cheers,
Selva