Hi guys i am trying to do and if statement for business catalyst
In bc they give you template tags ie {module_webapps,5502,a,}
I am trying to run a if statement to add this as code to a div.
var pathname = window.location.pathname;
if(pathname == '/test') {
//var mod = "{module" + '_' + "webapps,5502,a,}";
$('.comment-box').html("{module" + '_' + "webapps,5502,a,}");
//alert(mod);
}
It come through but it shows as text in the webpage and doesnt run the code.