+ 1
Format :
If (condition){
Exp1;
Exp2;
...
}
else {
Exp1;
....
}
First the compiler checks the condition written inside this "( )" bracket. If it satisfies then the code written inside 'if' block executes and if it doesn't then the code written inside 'else' block executes.