I have this very simple code to check whether the value is null or not but, it is not working and passing through the 'if' condition.

Code:
var existingFilterCriteria = filterCriteriaSectionRow.data('filterapplied');
if (existingFilterCriteria != null && existingFilterCriteria != '' && existingFilterCriteria != 'null');
{
MappingQueryFilter = existingFilterCriteria;
}
Question:
Am I doing anything wrong here? Is there any special check I have to do for data returned from the 'data' attribute in a DOM element?
filterCriteriaSectionRow.data('filterapplied')? What is the expected output? How do you define "working"?!=and!==are by no means the same thing.if(existingFilterCriteria) { ..