Boolean Data Type
The Boolean data type can hold two values, True and False; both True and False are keywords in Visual Basic. For example:
Dim b As Boolean = True
Boolean variables are used in various ways such as loop statements, as you will see later on in the book. The default value of a Boolean variable is False. That means if you don't initialize a Boolean variable when declaring it, it will be automatically initialized to False.
Get Visual Basic® .NET by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.