diff --git a/mustache.js b/mustache.js index 66a34ae..784fbab 100644 --- a/mustache.js +++ b/mustache.js @@ -444,11 +444,11 @@ var Mustache = function() { var value; value = this.find(name, contextStack[contextStack.length-1]); - if (value) { return value; } + if (value!==undefined) { return value; } if (contextStack.length>1) { value = this.find(name, contextStack[0]); - if (value) { return value; } + if (value!==undefined) { return value; } } return undefined;