Courses /
C# Basics
Booleans
Boolean data type represents two logical values true
and false
. The keyword bool
can be used to create a Boolean variable:
main.cs
Logical values are used especially where we want to execute a piece of code based on a specific condition. We will learn more about conditional statements in the next section.
Everything was clear?
Section 2. Chapter 4
Course Content
C# Basics
C# Basics
Booleans
Boolean data type represents two logical values true
and false
. The keyword bool
can be used to create a Boolean variable:
main.cs
Logical values are used especially where we want to execute a piece of code based on a specific condition. We will learn more about conditional statements in the next section.
Everything was clear?
Section 2. Chapter 4