If-else statement

The if-else statement is a control structure that executes different program parts depending on a condition. If the condition is met, the program part from the if-branch is executed, if the condition is not met, the else part is executed.