Course Content
C# Basics
C# Basics
else Keyword
There is an else
keyword which can be used for executing a block of code if the condition is not met.
Syntax:
Example:
main.cs
The following diagram explains the flow of if-else statement:
Everything was clear?
Section 3. Chapter 7
Course Content
C# Basics
C# Basics
else Keyword
There is an else
keyword which can be used for executing a block of code if the condition is not met.
Syntax:
Example:
main.cs
The following diagram explains the flow of if-else statement:
Everything was clear?
Section 3. Chapter 7