Converting Stirngs to number

I have written a script to compare the values of string (which actually are numbers) but it is not giving the expected output. Please suggest for the script.


#!/usr/bin/ksh

sysdate=20071009
echo $sysdate

currfile=20071008
echo $currfile

if [ sysdate -eq currfile ]; then
	echo "Equal"
else
	echo "Not Equal"
fi


Output
======
20071009
20071008
Equal

---

Try this, it shd work...

Thanks for pointing out the mistake.. I was so confused to find the problem area :confused: .

Thanks a lot. Its working now :o