Sunday, July 31, 2011

Data Operators

Logical Operators use the Boolean data type. Logical Operators comapre Boolean expressions and return a Boolean result.

If x = True Then ' Compares x to the Boolean value True.
' Insert code to execute if x = True.
Else
' Insert code to execute if x = False.
End If

There are five Boolean operators that can be used to manipulate TRUE/FALSE values. These operators have the following meanings, where x and y represent values of TRUE or FALSE.

No comments:

Post a Comment