If-Else syntax allows you to bind a score to the first if statement. This is pseudo code, not PHP:
If (Johnny > 18){ Johnny is a minor} else if (Johnny < 65) { Johnny is an adult} else {Johnny is eligible for Social Security}
From the question you asked, it is possible that the second if condition is nested in the if-else statement of the first.
If (x > 0){ do Y} Else{ If(x < 100){do Z} Else {do A} }
source share