Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
empty string is false
  • Loading branch information
shenfeng committed Dec 19, 2012
1 parent 0242298 commit 3641da9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/java/me/shenfeng/mustache/Context.java
Expand Up @@ -36,6 +36,8 @@ public static boolean isFalse(Object v) {
return true;
} else if ((v instanceof List) && ((List) v).isEmpty()) {
return true;
} else if((v instanceof String) && ((String)v).isEmpty()) {
return true;
}
return false;
}
Expand Down

0 comments on commit 3641da9

Please sign in to comment.