Hi I have a CSH script that is giving me problems.
Basically if 5 == 5 the script asks to delete the files yes or no. That part works. But what doesn't is when 4 ==5.
It complains about "DEL: Undefined variable."
The way it is setup it should just skip down to echo " 4 doesn't equal 5"
For some reason it is going to the next else if and continuing the script.
Can someone tell me why this is happening? It seems like a very simple thing to do.
if(4 == 5)then
echo "Do you wish to delete old job files (y/n)?"
if($DEL == "n")then
else if($DEL == "y")then
echo "Cannot continue"
echo "4 doesn't equal 5"