title: Trigger not checking if condition
body: <p>I have created a trigger , and this trigger updating the field value , but not checking the if condition , </p>
  
  <pre><code>DELIMITER $$
  create trigger `njsystem`.`test` BEFORE UPDATE on `njsystem`.`tbl_users` 
  for each row 
  BEGIN
      IF (NEW.user_failed_logins &gt; 3) THEN
          UPDATE tbl_users SET user_active = 0;
      END IF;
  END; $$
  
  DELIMITER ;
  </code></pre>