I have two if else statements, and if the first is not null, it will go on to check if the second is not null. However, it is not working. I have tested each of the codes and they are working fine, but they stop working when I put two If Else's together. The code stops at the first If Else and doesn't carry on.
Help would be much appreciated.
if (matchedGesture != null)
{
if (matchedGesture2 != null)
{
string compliment2 = "Fantastic!";
GestureNameTextBlock.Text = compliment2;
timer.Stop();
Aucun commentaire:
Enregistrer un commentaire