この比較が失敗するのはなぜですか? csharp の交互の文字列を比較するにはどうすればよいですか?
Static void Main(string[] args)
{
string varFoo = "cat";
if (varFoo != "cat" || varFoo!="duck")
Console.WriteLine("You can enter.");
else
Console.WriteLine("Not allowed.");
Console.ReadLine();
}
ちょうど何かが欲しかった
If(Either cat or a Duck)
// You're not allowed
else
// you are welcomed.