I have this line of code:

Code:
If (ShuffleTypeID <> idx_ShuffleType_EquipBest) And (ShuffleTypeID <> idx_ShuffleType_EquipWorst) Then Exit Function
I'd like it to be this:

Code:
If ShuffleTypeID <> (idx_ShuffleType_EquipBest Or idx_ShuffleType_EquipWorst) Then Exit Function
To see what that does I did this:

Code:
Sub SomeSub
Dim x As Integer

x = 2

MsgBox x = 5 or 7 ' Returns 7 instead of False.
I don't understand that.