it doesnt change to false!! please help i need to change the value of Password to false
//password check
{
connection.connect(function(){
connection.query('select * from rencho2.user',function(err,results){
if(results[0].passwd==p){
console.log("correct");
else {
global.verify="false";
console.log("Incorrect. "); //here its false
}
//here its false
});
//here it becomes true -- why??
send = {
"UserName": body.UserName,
"Password": global.verify
}
body1=JSON.stringify(send);
});
});