title: Return TRUE if counter is greater than 0?
body: <p>In PHP I am trying to return TRUE if $counter is greater than 0.  Would using a ternary operator work in this case.  Here is the original code:</p>
  
  <pre><code>if($counter&gt;0){return TRUE;}else{return FALSE;}
  </code></pre>
  
  <p>could I condense that down to</p>
  
  <pre><code>return $counter&gt;0?TRUE:FALSE
  </code></pre>
  
  <p>Thanks</p>