title: How to check for a null value from the return value in ColdFusion query loop
body: <pre><code>&lt;cfloop query="GET_ALL_STUDENTS&gt;
   &lt;cfif #student_id# is  NOT NULL&gt;
   &lt;!--- do something---&gt;
   &lt;/cfif&gt;
  &lt;/cfloop&gt;   
  </code></pre>
  
  <p>Above is how I am looping my cf query which returns null value and I want to check if the student_id is null or not. This is what I have tried and it failed. Can anyone tell me a better way?</p>