title: code always work in grocery crud although the if condition
body: <p>I got stuck in a situation quite strange in my code. It seems as the if condition does not work. Here is my code:</p>
  
  <pre><code>if ($mode == "edit") {
      echo "edit mode!";
  } 
  else {
      $crud-&gt;set_rules('u_email','Email','is_unique[users.u_email]');
      echo "NOT edit mode!";
  }
  </code></pre>
  
  <p>When I go to this url: grocery/edit/55 (my edit mode) i see the line <strong>edit mode!</strong>. The strange thing here is the row below works:</p>
  
  <pre><code>$crud-&gt;set_rules('u_email','Email','is_unique[users.u_email]');
  </code></pre>
  
  <p>That line works, But I still do not get the message <strong>NOT edit mode!</strong></p>
  
  <p>Why is this line always works? Why is_unique also works in the edit mode?</p>
  
  <p>Sorry about my bad english. and thanks for all :-)</p>