0Pricing
C# Academy · Lesson

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!

Control Flow: If-Else Statements — illustration 1

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

  1. Control Flow: If-Else Statements
  2. Loops in C#: For, While, and Do-While
  3. Switch Statements
  4. Introduction to Arrays
  5. Working with Strings
← Back to C# Academy