Need help with using if in shell scripting

Hi All,

Please help to write a if statement for below requirement.

connect to server abc.com
to chk if file rac.csv exists in the server.
If file exist then connect to the server abc.com and copy the file to server dfg.com
else
connect to the server wer.com and copy the file qwe.csv to the dfg.com.

Thanks
Rajesh

if [ -z rac.csv ]
then
connect to server abc.com
cp dfg.com to server path
else
connect to server wer.com
cp qwe.csv /dfg.com
fi