Use
if ( "x$R" == "x" ) then
echo empty
else
echo not empty
endif
The C shell doesn't have an empty operator like bash. Also, you can't quote with ' as it will prevent the variable expansion.
Use
if ( "x$R" == "x" ) then
echo empty
else
echo not empty
endif
The C shell doesn't have an empty operator like bash. Also, you can't quote with ' as it will prevent the variable expansion.