jeudi 5 mars 2015

If statement is true but code doesn't execute C#


while (reader.Read())
{
//do something


if (reader[0] != null)
{
if (reader[0] == (email))
{
Console.WriteLine("ok");
reader.Close();
con.Close();
return true;
}
}
}


this statement if (reader[0] == (email)) shows true but doesn't execute the codeenter image description here


Aucun commentaire:

Enregistrer un commentaire