how to use string if else statements in c# code example Example: if statement c# if (condition) { print("Yes"); } else { print("No"); }