The Boolean Data Type

A variable that contains a logical value (simple true/false, yes/no, or on/off information) can be declared with the Boolean data type. The default value for the Boolean type is False. In the following example, creditExceeded is a Boolean variable that stores a yes/no setting.


Dim creditExceeded as Boolean

' Ask if the credit limit is exceeded.
If amt > Limit Then creditExceeded = True