aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 9a39c92d..3d5a6f06 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -18,7 +18,7 @@ function preprocess(text, constants) {
} else {
if (line[1] == 'i') { // if
var ident = line.substr(4);
- show = !!this[ident];
+ show = !!this[ident] && this[ident] > 0;
} else if (line[2] == 'l') { // else
show = !show;
} else if (line[2] == 'n') { // endif