I have this line of code:
I'd like it to be this:Code:If (ShuffleTypeID <> idx_ShuffleType_EquipBest) And (ShuffleTypeID <> idx_ShuffleType_EquipWorst) Then Exit Function
To see what that does I did this:Code:If ShuffleTypeID <> (idx_ShuffleType_EquipBest Or idx_ShuffleType_EquipWorst) Then Exit Function
I don't understand that.Code:Sub SomeSub Dim x As Integer x = 2 MsgBox x = 5 or 7 ' Returns 7 instead of False.




Reply With Quote