title: If value is greater/lesser than xyz
body: <p>I have a value as a number. For instance, 502.
  I want to write a php if statement that will display some text if the value is lesser or greater than certain numbers, or between a range.</p>
  
  <p>E.g.
  number is 502, text will say: "Between 500-600"
  number is 56, text will say: "Between 0-60"
  etc.</p>
  
  <p>So far I have this:</p>
  
  <pre><code>&lt;?php $count=0;?&gt;
  &lt;?php $board = getUserBoard($userDetails['userId']);?&gt;
  &lt;?php if(is_array($board)):?&gt;
  &lt;?php  $boardCount = count($board);?&gt;
  &lt;?php foreach($board as $key=&gt;$value):?&gt;
  &lt;?php
  $boardPin = getEachBoardPins($value-&gt;id);
  $count = $count + count($boardPin);
  ?&gt;
  &lt;?php endforeach?&gt;
  &lt;?php endif?&gt;
  </code></pre>
  
  <p>And that gives me a number:</p>
  
  <pre><code>&lt;?php echo $count;?&gt;
  </code></pre>
  
  <p>I have tried writing...</p>
  
  <pre><code>&lt;?php if(($count)): =&gt; 500 ?&gt;
  Over 500
  &lt;?php endif ?&gt;
  </code></pre>
  
  <p>But I keep running into errors.</p>
  
  <p>I'd like to create a list if possible with elseif statements denoting various number ranges.</p>
  
  <p>E.g.</p>
  
  <p>0-50, 51-250, 251-500 etc.</p>
  
  <p>Can anyone help me?</p>
  
  <p>Thanks.</p>