Eqv Operator

αž‚αžŽαž“αžΆβ€‹αž—αžΆαž–β€‹αžŸαŸ’αž˜αžΎβ€‹αž‚αŸ’αž“αžΆβ€‹αžαž€αŸ’αž€β€‹αžœαž·αž‡αŸ’αž‡αžΆβ€‹αž“αŸƒβ€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž–αžΈαžšΒ αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–

Result = Expression1 Eqv Expression2

αž”αŸ‰αžΆαžšαŸ‰αžΆαž˜αŸ‰αŸ‚αžαŸ’αžš αŸ–

αž›αž‘αŸ’αž’αž•αž›β€‹ αŸ– αž’αžαŸαžšβ€‹αž›αŸαžβ€‹αžŽαžΆβ€‹αž˜αž½αž™ αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αž›αž‘αŸ’αž’αž•αž›β€‹αž“αŸƒβ€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”Β αŸ”

Expression1, expression2 αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹β€‹αž˜αž½αž™β€‹αž…αŸ†αž“αž½αž“β€‹ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”Β αŸ”

αž“αŸ…β€‹αž–αŸαž›β€‹αžŸαžΆαž€αž›αŸ’αž”αž„ αžŸαž˜αŸ’αžšαžΆαž”αŸ‹β€‹αž—αžΆαž–β€‹αžŸαž˜αž˜αžΌαž›β€‹αžšαžœαžΆαž„β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž”αŸŠαžΌαž›αžΈαž“ αž›αž‘αŸ’αž’αž•αž›β€‹αž‚αžΊ αž–αž·αž αž”αŸ’αžšαžŸαž·αž“β€‹αž”αžΎβ€‹αž€αž“αŸ’αžŸαŸ„αž˜ αž–αž·αž αž‘αžΆαŸ†αž„β€‹αž–αžΈαžš αž¬β€‹αž˜αž·αž“β€‹αž–αž·αž αž‘αžΆαŸ†αž„β€‹αž–αžΈαžšΒ αŸ”

αž€αŸ’αž“αž»αž„β€‹αž€αžΆαžšβ€‹αž”αŸ’αžšαŸ€αž”αž’αŸ€αž”β€‹β€‹αž”αŸ’αžšαž˜αžΆαžŽαžœαž·αž’αžΈβ€‹ bit-wise αžŸαž‰αŸ’αž‰αžΆβ€‹αž”αŸ’αžšαž˜αžΆαžŽβ€‹αžœαž·αž’αžΈ Eqv αž€αŸ†αžŽαžαŸ‹β€‹αžαŸ‚β€‹αž”αŸŠαžΈαžβ€‹αžŠαŸ‚αž›β€‹αžαŸ’αžšαžΌαžœβ€‹αž‚αŸ’αž“αžΆβ€‹αž€αŸ’αž“αž»αž„β€‹αž›αž‘αŸ’αž’αž•αž›β€‹αž”αŸ‰αž»αžŽαŸ’αžŽαŸ„αŸ‡ αž”αžΎβ€‹αž”αŸŠαžΈαžβ€‹αž˜αž½αž™β€‹αžαŸ’αžšαžΌαžœβ€‹αž”αžΆαž“β€‹αž€αŸ†αžŽαžαŸ‹β€‹αž€αŸ’αž“αž»αž„β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΆαŸ†αž„β€‹αž–αžΈαžš αž¬β€‹αž˜αž·αž“β€‹αž˜αŸ‚αž“β€‹αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΆαŸ†αž„β€‹αž–αžΈαžš αŸ”

αž§αž‘αžΆαž αžšαžŽαŸ αŸ–

Sub ExampleEqv

Dim A As Variant, B As Variant, C As Variant, D As Variant

Dim vOut As Variant

    A = 10: B = 8: C = 6: D = Null

    vOut = A > B Eqv B > C REM returns -1

    vOut = A > B Eqv B > D REM returns -1

    vOut = A > B Eqv B > D REM returns -1

    vOut = A > B Eqv B > D REM returns -1

    vOut = A > B Eqv B > D REM returns -1

End Sub