However, I get this error:
Operator '||' cannot be applied to operands of type 'bool' and 'int'.
I've tried using the bitwise OR ( | ) and I get:
Operator '|' cannot be applied to operands of type 'bool' and 'int'.
Any help?
Here is the code if it helps.
Expand|Select|Wrap|Line Numbers
- int index = listBoxCrazyEights.SelectedIndex;
- if (index == 6 || 8 || 9)
- {
- //Code here if this is true
- }