Optional argument of if. Example of the implicit else:
Example with the explicity else:
It's usually good style to put the else in for clarity, as there's no performance impact for most code. Compare with then...
Also, elseif introduces an alternative condition.
Note that the two words have to be written together (without space in between), while in C you must have a space. RS 2007-06-01