Conditional statement transactional message center issue
I have been testing out conditional content within our transactional message in V8 however I can't seem to get it to work when there is a 'Null' condition present. The piece of Javascript I am using is:
<% if (ctx.@Variable_Name != '') { %>show HTML content<% } else { %>show other HTML content<% } %>
When I use
<% if (ctx.@Variable_Name != 'variable name') { %>show HTML content<% } else { %>show other HTML content<% } %>
it seems to work fine however when I change it to a blank input it fails again. What am I doing incorrectly in the transactional message HTML editor compared to the normal delivery HTML editor as the same piece of code works there (obviously changing the variable name to be targetData rather than ctx)