I have a book for C# (CSharp) I only know a little bit but I am doing Console.Writeline stuff
I have this simple code here
Console.WriteLine("Please enter your name");
string name = Console.ReadLine();
if (name.Contains("no"))
{
Console.WriteLine("\nFine, don't put your name in");
}
else
{
Console.WriteLine("\nHello, " + name);
}
At the If part If you put "no" obviously it runs ("\nFine, don't put your name in") but if you put "no" as "No" "NO" "nO" it doesn't is there a code like name.Contains where it doesn't matter how you put the text it runs it anyway
Like SmallBasic Text.ConvertToLowerCase would convert your text to lowercase and then Run the IF
Thanks!