"Execution problem". Getting error without sending e-mail

Hi,

This is the end of the script. When i try to execute the script, i am getting the error.
Please help me as to what is wrong with this script.?

elif [ $rc == 4 ]
echo 'Load Failed -- Return Code =' $rc
subject="Consent table load failed"
(
echo "The log file is attached to the e-mail"
for logfile in "${logfile}"
do
attachment=`basename "${logfile}"`
uuencode "${attachment}" < "${logfile}"
echo ""
done
) | mailx -s "${subject}" "$to" id11355@gmail.com
fi
exit $rc
***********************************************

Getting an error as follows:

-bash-3.00$ ./sqlldrconsent.sh.old
SQL*Loader: Release 11.2.0.1.0 - Production on Fri Nov 5 09:28:22 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 17
./sqlldrconsent.sh.old: line 89: syntax error near unexpected token `fi'
./sqlldrconsent.sh.old: line 89: `fi'

Thread closed,
You have been warned so many times already!
If you wish to repost USE CODE TAGS for the code!