To check if an environment variable exists in .mycshrc or shell scripts

if ($?TERM) then
  echo "TERM is $TERM" 
endif