string x;
x = console.readline();
if (x == "Hello");
it says you can't compare strings.
Hmmm, I thought you could do the "==", but anyway:
private static string CompareStrings(string str1, string str2)
{
// compare the values, using the CompareTo method on the first string
int cmpVal = str1.CompareTo(str2);
if (cmpVal == 0) // the values are the same
return "The strings have the same value!";
else if (cmpVal > 0) // the first value is greater than the second value
return "The first string is greater than the second string!";
else // the second string is greater than the first string
return "The second string is greater than the first string!";
}