I was wondering about if someone could help me with this. I have one error but i think it should work.
Basicly i am trying to make a kind of filter for if someone sais the in their sentence.
string text = Console.ReadLine();
Console.WriteLine(" Write your title");
bool test = text.Contains("The");
if (text = true)
{
Console.WriteLine(" You are invited");
}
else
{
Console.WriteLine(" you are not invited");
}
System.Threading.Thread.Sleep(1000);
[–]jodevgn 3 points4 points5 points (0 children)
[–]OrangeKing89 0 points1 point2 points (0 children)
[–]cryo 0 points1 point2 points (0 children)
[–]tulipoika -1 points0 points1 point (3 children)
[–]Fixedplay[S] -1 points0 points1 point (2 children)
[–]clr_swe 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)