title: Calling Handlebars if helper from a custom helper
body: <p>I'm looking for a way to override the "if" helper in handlebars to do preprocessing, but then to call the original if helper to do the rest of the heavy work.</p>
  
  <p>If I do this however, it sets up for an infinite loop:</p>
  
  <pre><code>// objectCreate is just a function that's supposed to clone an object.
  Handlebars._helpers = objectCreate(Handlebars.helpers);
  
  Handlebars.registerHelper('if', function(conditional, options){
          console.log("if helper");
          conditional = false;
          Handlebars._helpers["if"].call(this, conditional, options)
  
  
      }); 
  </code></pre>
  
  <p>Anybody ever have to do this before? I know I can make a custom helper like "conIf" and then call the original but I would like to keep the same name if possible. </p>
  
  <p>Thanks for the help!</p>