title: Opencart test if version greater than 1.5.1.3
body: <p>How would I add an IF statement to check if the opencart version is greater than 1.5.1.3?</p>
  
  <p>This is defined in the index.php as:</p>
  
  <pre><code>// Version
  define('VERSION', '1.5.0');
  </code></pre>
  
  <p>I have tried: <code>if((int)VERSION &gt;= '1.5.1.3'){</code> although when I convert this into an int it becomes empty. </p>
  
  <p>Also I tried this with the same effect:</p>
  
  <pre><code>$this-&gt;data['oc_version'] = (int)str_replace('.', '', VERSION);
  if($this-&gt;data['oc_version'] &gt;= 1513){
  </code></pre>
  
  <p>Do I need to convert this into an int to correctly perform greater/less than calculations?</p>