Eqv-Operator [Runtime]/text/sbasic/shared/03060200.xhpSun Microsystems, Inc.converted from old format - fpeEqv operator (logical)Eqv-Operator [Runtime]Calculates the logical equivalence of two expressions.Syntax:Result = Expression1 Eqv Expression2Parameters:Result: Any numeric variable that contains the result of the comparison.Expression1, expression2: Any expressions that you want to compare.When testing for equivalence between Boolean expressions, the result is True if both expressions are either True or False.In a bit-wise comparison, the Eqv operator only sets the corresponding bit in the result if a bit is set in both expressions, or in neither expression.Example:Sub ExampleEqvDim vA as Variant, vB as Variant, vC as Variant, vD as VariantDim vOut as VariantvA = 10: vB = 8: vC = 6: vD = NullvOut = A > B Eqv B > C REM returns -1vOut = B > A Eqv B > C REM returns -1vOut = A > B Eqv B > D REM returns -1vOut = (B > D Eqv B > A) REM returns 0vOut = B Eqv A REM returns -1End Sub