Tag c# short if else statement

C# The else if Statement

The else if Statement Use the else if statement to specify a new condition if the first condition is False. Syntax if (condition1) { // block of code to be executed if condition1 is True } else if (condition2) {…