String comparision in shell scripting

Hi Guys,

I am new to scripting

I have written a code to compare strings,but I am getting some Exception

Code snippet:

MODE="D"
if [[ $MODE = "D" ]]; then
. $file1
fi

Error:
./BatchJobs.sh: [[: execute permission denied

I have given all Execute permissions to the script(chmod 755 BatchJobs.sh)

Can anybody help me in this

Thanks in advance

Thanks all of you guys,

The Answer for above is

if [ "$MODE" = "D" ]
then
. $file1
fi

Thanks alot

Hey this was useful for me too .. Thanks