app.get("/", function(req, res) {
          if( some_func() == 0 ) {
                res.send("some_func() returned zero!");
                /* leave function(req, res) */
          } 
          res.send("Everything OK.")
});
How would that work in Node.js?
 
     
    