The error message is --> "Syntax error" and it highlights the last "else" statement. thanks for the reply.