I have written a simple conditional statement, in which I'm getting a string input from the user, checking if it's equal to something but the nature of my code makes me add a single more operand to operate between
I tried this but it gives an error that you can't operate between two strings, obv there is some logical fallacy but I want a similar solution to this problem
if (Console.ReadLine() == ("s"||"S"))
Now I know this works if I make a separate variable and just check with it for both "S" and "s", but I want to do it inline and within that single statement, If I add another "Readline()" it will just take two inputs and won't do what I want it to do.
If there is anyway to make this work within that line, please let me know.