You’re setting the string userAnswer = "";
in your declaration. but.. in your if you’re checking it on if (userAnswer != null)
but… it’s never null
You should check if (userAnswer != "")
Because if a string has the value null
isn’t the same as an empty string ""
4
solved If Statement Not working Correctly Won’t Pass If Statement C#