<% if (data!=null && dTA!="") { %> <% } %> its not working html code example
Example: is var is not blank then display value in javascript
if(data !== null && data !== '') {
// do something
}
if(data !== null && data !== '') {
// do something
}