How can I apply the `|` operand to a string?
问题 I am having trouble with this line of code right here...why am I being prompted with this error? I am getting an error saying "Operator '|' cannot be applied to operands of type 'bool' and 'string' How do check if my residency variable is not equal to these 2 strings I have listed in the if statement? catch (ArgumentException) { if (age > 16 | age > 80) { Console.WriteLine("You can only enter states of OH or MI ad the driver's age must be between 16 and 80."); } if (residency != "OH" | "MI")