C# if…else statement
This statement contains two-part and depends on the boolean value evaluated by the condition checked. If the condition is true then the code inside the if statement is executed or if it is false then the code inside else statement will be executed. The syntax of the if..else statement in C