Hi all!
I'm looking for a "cheat" if you will, on how to shorten the method I want to use to display something.
I have a label that I only want to appear if the words left, right, or both are selected in numerous comboboxes. I know this sounds strange, just bear with me here.
I was hoping that something like:
"Left" || "Right" || "Both" in combobox1.SelectedItems.Value
would work, but it only evaluates against "Both".
I'm aware I can type out something like:
"Left" in combobox1.SelectedItems.Value || "Right" in combobox1.SelectedItems.Value || "Both" in combobox1.SelectedItems.Value
and it would work perfectly, but as I stated above I have numerous comboboxes and am looking for an easier method to display this thing.
Any advice is appreciated!