title: If not null then display * JAVASCRIPT
body: <p>I am using reporting software Entrinsik Informer (only allows Javascript or HTML to accomplish what I want). I am pulling data from a U2 Unidata database. I have two columns side by side. One is prereq, which is from the database. The other is a calculated column I created which will display * if any field in prereq has data in it.  If it is empty then nothing will be displayed in the calculated column.</p>
  
  <p>What it should do: Display an * for each course with a prerequisite
  What it is doing: Displaying an * for every class</p>
  
  <p>This is what I have, and it is displaying an * for every field even the ones that don't have any data.</p>
  
  <p>My code:</p>
  
  <pre><code>var prereq=coursePrereq; //assigns a variable and loads it with data from the field in   database
  var output="":
  if(prereqs !=null) // if the field is not empty then
  {
  output='*';    // display an *
  }
  </code></pre>
  
  <p>Any help is appreciated.</p>
  
  <p>SOLUTION(9/17/13):
      var prereqs = courseSections4_crsifcrsprereqs;
      var output =" ";
      if (prereqs[0] !==null)
        {"*"}
      else
      {" "}</p>