if, else if, else statements

It is my understanding that the "else if" cannot be the last statement in a if block.

I thought you have to have

if else if else if else

I have some inherited code that seems to work but has a block ending with a else if statement. Is this OK?

There is no reason you have to end with an else. If you don't, it means that its possible that none of the IF statements will execute.

Also, if there are a bunch of else if like that, it may be worth exploring a switch statement.

Best of luck!

Sevvn

It is my understanding that the "else if" cannot be the last statement in a if block

You understand wrong.