title: How to check if a variable crossed certian value in php
body: <p>I'm using php to build a dynamic site. In my DB I have an field named <code>points</code> in table <code>siteuser</code>, which is the points of the site user. </p>
  
  <p>It is loaded to variable <code>$points</code> in the controller. Every time point increases the value in variable in updated to the field. A flash message will be displayed at point were the point value crosses 100.</p>
  
  <p>I am having trouble in checking if the <code>$points</code> crossed 100 mark. If I write the condition as </p>
  
  <pre><code>if($points&gt;=100) {echo msg;}
  </code></pre>
  
  <p>The message will appear for all values above 100. The Message should only be displayed once. So, how to write the condition?</p>