And Operator

Used to perform a logical comparison of two Boolean expressions.

# Notes

# Syntax

result=expression1 And expression2

Part | Description
--- | ---
result | A Boolean value.
expression1 | Any valid Boolean expression.
expression2 | Any valid Boolean expression.

If both expressions evaluate to True, then result is True. If either expression evaluates to False then result is False.

# Example

This example uses the And operator to perform logical comparisons.

Dim a As Boolean
Dim b As Boolean
Dim c As Boolean
Dim d As Boolean
a= True
b= True
d=a And b //Returns True
d=a And c //Returns False

# See Also

Not, Or operators; Operator_And function.