
Tyler P. answered 04/12/19
Software Engineering Graduate That Is Happy to Help
No, c# doesn't have a grammar which supports this. If there are only a select number of combinations which you care about the best options would to just have if statements checking for the 3 conditions. For your example it would be
If you care about a bunch of possible permutations of these variables (like if you would need 10 if statements) then you may want to look more into figuring out what common actions your different branches of code are doing and finding a way to reduce the repetitive code.