How can I achieve an elseif in a JavaScript condition?
Actually, technically when indented properly, it would be:
if (condition) { ... } else { if (condition) { ... } else { ... } }
There is no else if, strictly speaking.
else if
(Update: Of course, as pointed out, the above is not considered good style.)