If..elif..else...fi

Hi all,

I got some problems on executing the following scripts.

Scripts:
if [[ ${var1} == 1 ]]; then
echo "M${str}O 0 1" >> ${tempFile}
elif [[ ${var2} == "U"]]; then
echo "M${str}O 1 0" >> ${tempFile}
else
echo "M${str}O 0 0" >> ${tempFile}
fi

Error:
"`;' is not expected."

what's the problem?

Thanks,
Rock

check for the space

elif [[ ${var2} == "U" ]]; then

yes ... thank you