and |
| result = expr1 and expr2 |
and operator |
| expr1 | The first expression evaluating to either True or False (Boolean). |
| expr2 | The second expression evaluating to either True or False (Boolean). |
| REMARKS |
| * This is an Operator * You can use the or operator to * You can use the not operator to * The equivalent VBA operator is AND |
print(True and True) #= True
print(True and False) #= False
print(False and True) #= False
print(False and False) #= False
print( 5 > 3 and 2 < 4 ) #= True
print( 5 > 3 and 2 > 4 ) #= False
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited Top