Warning on a if

I'm having a difficult time finding this error. The script is pretty simple, you receive some information from the command line and the it ask you if you want to continue. The script continues, but it seems that miss the if.

print "Press Y to continue"
read res

if [$res != "Y"];then
        print "Exiting Script"
        exit
fi

./change_version.sh 2.2.17 2.2.21 apache-2.2.17-testing-daniel apache-2.2.21-testing-daniel

You are about to copy the configurations and htdocs files from apache-2.2.17-testing-daniel to apache-2.2.21-testing-daniel
Press Y to continue
N
./change_version.sh[18]: [N: not found [No such file or directory]
Copying configuration files
Modifying files for the new version

Thanks

You need spaces around [ and ]

if [ $res != "Y" ];then

Sir, thank you very much.
:b:
You show me how I can drown in a glass of water