title: How can I check if a variable is empty or not in tcsh Shell?
body: <p>IF I have to check that if a variable is empty or not for that in bash shell i can check with the following script:</p>
  
  <pre><code>if [ -z "$1" ] 
  then
      echo "variable is empty"
  else 
      echo "variable contains $1"
  fi
  </code></pre>
  
  <p>But I need to convert it into tcsh shell.</p>