AND Operator [Runtime]/text/sbasic/shared/03060100.xhpSun Microsystems, Inc.converted from old format - fpeAND operator (logical)AND Operator [Runtime]Logically combines two expressions.Syntax:Result = Expression1 And Expression2Parameters:Result: Any numeric variable that records the result of the combination.Expression1, Expression2: Any expressions that you want to combine.Boolean expressions combined with AND only return the value True if both expressions evaluate to True:True AND True returns True; for all other combinations the result is False.The AND operator also performs a bitwise comparison of identically positioned bits in two numeric expressions.Example:Sub ExampleAndDim A as Variant, B as Variant, C as Variant, D as VariantDim vVarOut as VariantA = 10: B = 8: C = 6: D = NullvVarOut = A > B And B > C REM returns -1vVarOut = B > A And B > C REM returns 0vVarOut = A > B And B > D REM returns 0vVarOut = (B > D And B > A) REM returns 0vVarOut = B And A REM returns 8 due to the bitwise AND combination of both argumentsEnd Sub