The if statement is a conditional statement that allows a program to enter or not a specific section of code depending if the condition(s) of the statement are met or not. It can be found in mostly all the existing programming languages.
The if statement will usually take the following shape:
if(statement)
{
// Code to execute
}
The code in the brackets will only be executed if the statement is true. If that's not the case, the code section included in the if section will be ignored, and the program will continue without executing the corresponding code.