Bourne Shell: if elsif question

Hi All,
Must be something obvious I am missing, but the simple script below doesn't work.

#!/bin/sh
x=4
if [ "$x" -eq "4" ]
then
echo "x is $x"
elsif [ "$x" -gt "4" ]
then
echo "x is greater than 4"
else
echo "x is less than 4"
fi

When I run this script, I get the error message:
7: Syntax error "then" unexpected (expecting "fi")

Please Help.

Thanks in Advance.

ok, for one you dont need all those quotes in the if statement. and i do believe your elsif is supposed to be spelled elif.. maybe that will help?

This should work for you

#!/bin/sh
x=4
if [ "$x" -eq "4" ]
then
   echo "x is $x"
elif [ "$x" -gt "4" ]
then
   echo "x is greater than 4"
else
   echo "x is less than 4"
fi

Thanks. That was it. Strange that the website from where I am learning shell scripting has it elsif everywhere..hmm.