I am trying to compare two strings in C# but even though I print the strings and they are the same, the check always fails.
Only one is stored in a variable and the other is hardcoded.
I tried using the ==
operator and the equals
operator.
Also tried with using the IgnoreCase
StringComparison
option but still nothing. I also checked the length of the string in case there are leading or following spaces or something but it's the same. IF it is any help the string is coming from GlovePIE
What could be going wrong?
equals
or==
should normally work. – Zee May 24 at 23:17