c# if statement in method code example Example: how to use if statemnts c# int thing; if (thing == "34") {Console.WriteLine("Noice")}