#javascript if condition is getting executed even though the condition is false : javascript flow is entering `if condition` even if the condition is false.
The code is below:   
 

    console.log("RefRefRef: "+Ref.length);
    if(false) {
        			console.log("slakdfjaskldjlk");
        			$
        			.ajax({
        			url : "OnlineForm",
        			data : {
        					"RefId" : Ref
        		     	},
                   success : function(response) {
                   });
               }

Let me know if the question is not clear enough. 
Thanks