Control Flow: If-Else Statements
Learn how to make decisions in your programs using if-else statements.
1
Control Flow: If-Else Statements
Welcome to the first lesson in C# Fundamentals! In this lesson, you’ll learn how to use if-else statements to make decisions in your programs. Let’s get started!

2
What Are If-Else Statements?
If-else statements allow your program to make decisions based on conditions. Depending on whether a condition is true or false, the program executes a specific block of code.
Key Point: Use if-else statements to control the flow of your program based on logic.
All lessons in this course
- Control Flow: If-Else Statements
- Loops in C#: For, While, and Do-While
- Switch Statements
- Introduction to Arrays
- Working with Strings