ParseError thrown

syntax error, unexpected end of file, expecting "elseif" or "else" or "endif"