title: Perform action based on callback(true) / callback(false)
body: <p>I want to be able to perform some logic within a callback function based on whether callback(true) or callback(false) was called in the preceeding function.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>foo.doFunction = function (param, callback)
  {
      int a = 1;
      int b = param;
  
      if(a &lt; param)
      {
           callback(false);
      }
      else
      {
           callback(true);
      }
  }
  
  foo.doFunction(param, function()
  {
       if(true)
       {
       }
       if(false)
       {
       }
  });
  </code></pre>
  
  <p>Is what I am trying to achieve possible through the use of callbacks?</p>
  
  <p>Thanks for your time.</p>