if elseif fi

Hi all,

This is my first post in this forum, can i request you to guide, where i am going wrong with the error below.

34: Syntax error: "fi" unexpected (expecting "then")

#!/bin/sh 
argCount=0
mysql_path=$USER_INSTALL_DIR$
for i in $*; do 
/A argCount+=1
done
if [ "${argCount}" -eq "0" ];then
echo "There are no rejected records." >> /opt/oracle/Public/test.txt
fi
if [ $argCount -eq 0 ];
then
showDEFAULTUsage $0$;
fi
if [[ ${1} = "MySQL" ]]; then 
echo "MySQL"
elif
[[ $argCount -ne 9 ]]; then
[[ showMYSQLUsage $0 ]]
elif
[[ mysqlDBMIGRATORSCRIPT $0$ $1 $2 $3 $4 $5 $6 $7 $8 $9 ]]
fi
mysqlDBMIGRATORSCRIPT
mysqldump -u $2 -p$3 -h$8 $4 > $mysql_path$/$4.sql
EOF
showDEFAULTUsage
echo [USAGE]: $~1 "DB TYPE(mysql|oracle|sqlserver|sybase)" "DB PARAMS"
EOF
showMYSQLUsage
echo [USAGE]: $~1 "DB TYPE" "SOURCE USER NAME" "SOURCE USER PWD" "SOURCE DB SCHEMA NAME" "TARGET USER NAME" "TARGET USER PWD" "TARGET DB SCHEMA NAME" "SOURCE HOST" "TARGET HOST"
EOF
EOF

From the bash manpage:

 if list; then list; [ elif list; then list; ] ... [ else list; ] fi

These lines of code dont seem to have the "then list" expression...

elif
[[ mysqlDBMIGRATORSCRIPT $0$ $1 $2 $3 $4 $5 $6 $7 $8 $9 ]]
fi

ok i will modify on those and get back to you

Thanks guys