Sqlldr call via shell script prompts error

Good morning,
I'm attempting to call sqlldr via shell script and it is prompting endIf is unec

#!/bin/sh
cd /tmp/v_tst
FILENAME_WANTED=`date +"HourlyData_%Y%m%d_%H00.txt"`
echo "FILENAME_WANTED = ${FILENAME_WANTED}"
LIST_OF_FILES=`ls -rt HourlyData*.txt |tail -1`
LIST_OF_FILES=`basename $LIST_OF_FILES`
echo "------"
if [ "${FILENAME_WANTED}" = "${LIST_OF_FILES}" ] then 
   sqlldr / control=/tmp/v_tst/gmas_tst_ctl.ctl data=${LIST_OF_FILES} log=/tmp/v_tst/${LIST_OF_FILES}.log
else 
echo "NotMatched"
fi 

output:

FILENAME_WANTED = HourlyData_20160715_1200.txt
------
chk.sh: syntax error at line 10: `else' unexpected

I tried to comment out else & echo after that .. then it is prompting endif is unexpected. Please suggest how to fix this error..

So - what did you learn from your other thread?

how to assign variables in a shell script

Hmmm - that's not too much. Please take the time and reread this.

I'm pretty sure I used VI editor to write today's script -- anyhow I got it working.. I had to use a for loop to get around to work with sqlldr part