ELSE IF statement added

Added the ELSE IF portion of the code.