I have come across the following code in C#.
if(condition0) statement0;
else if(condition1) statement1;
else if(condition2) statement2;
else if(condition3) state
To expand on @hunter's answer the reason, as you hit on it that without brackets it will only execute the next line, if it were a bunch of nested the else would need brackets:
if(condition0)
statement0;
else
{
if(condition1)
statement1;
else
{
if(condition2)
statement2;
else
{
if(condition3)
statement3;
else
...
}
}
}