Problems with Embedded IF-else

Hi,

I am putting the finishing touches on a shell script.

I have the following which works FINE:

if [[ -s results1.tmp ]] && [[ -s results2.tmp ]]
then 
    /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < final_email.tmp
fi

However, I need to make several else clauses and the interpreter complains about the second else clause. Can someone tell me where my syntax is wrong?

if [[ -s results1.tmp ]] && [[ -s results2.tmp ]]
then
    /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < final_email.tmp
else
    if [[ -s results1.tmp ]]
    then
        /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < email.tmp
    fi
else
    if [[ -s results2.tmp ]]
    then
        /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < email1.tmp
    fi
fi


if [[ -s results1.tmp && -s results2.tmp ]]
then
    /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < final_email.tmp
elif [[ -s results1.tmp ]]
then
    /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < email.tmp
elif [[ -s results2.tmp ]]
then
    /bin/mail -s "Illegal Loggon Attempts on MAIL" sysadmin@ghf.com < email1.tmp
fi