Logical operators in VBA : Logical Operators « Language Basics « VBA / Excel / Access / Word





Logical operators in VBA

 
Operator       Description 
AND            All conditions must be true before an action can be taken.
OR             At least one of the conditions must be true before an action can be taken.
NOT            If a condition is true, NOT makes it false. If a condition is false, NOT makes it true.

 

Related examples in the same category

1.Truth table for the AND operator
2.Truth table for the OR operator
3.Truth table for the NOT operator
4.Use Boolean value in an If statement
5.Logical Expressions