Corrected language selection (if-else) code.