levyuk
asked on
Or operator
Can I compare a string with 2 different strings? I.e.
if (element.TagName == "A" || "a")
{
MessageBox.Show("true");
}
Doesn't seem to work, does anyone have code that could do it?
if (element.TagName == "A" || "a")
{
MessageBox.Show("true");
}
Doesn't seem to work, does anyone have code that could do it?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks guys
Bob