Technically speaking, an ELSEIF is really just an ELSE followed by a "nested" IF.
Technically speaking that's not quite correct :P
ELSEIF and ELSE IF are indeed equivalent in mirc, but they are not equivalent to ELSE { IF() {} }. The difference is that you can have two or more ELSEIFs or ELSE IFs but never more than one ELSEs, for example:
//if (0) echo a | elseif (0) echo b | elseif (1) echo works
//if (0) echo a | else if (0) echo b | else if (1) echo works
//if (0) echo a | else { if (0) echo b } | else { if (1) echo doesn't work }
I'm sure you know that already, and your example code seems to imply this, just making it clear to those who don't.