NULL string, feature or bug? lazarus / 76-Pas2JS ---------------------------------------------------------------------- ps · 2020-05-15 08:56 Some JS functions return empty string as 'null' value. So there is no empty string. But this operation  Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if StringValue = 'null' generate JS code like this Code: Javascript  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if StringValue === "" This is working example: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  StringValue : String;begin  StringValue := window.localStorage.getItem('MeData');  if isNull(StringValue) then begin    Writeln('empty');  end;     This is not working: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  StringValue : String;begin  StringValue := window.localStorage.getItem('MeData');  if StringValue  = '' then begin    Writeln('empty');  end;