This is a string so please compare it as a string , should be templateData,port !== "443".