diff options
author | alon@honor <none@none> | 2010-09-27 20:13:23 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-27 20:13:23 -0700 |
commit | 3172545cfb1945f96d4b9d81942f643aeab7b873 (patch) | |
tree | c4ac0ff09f39469d5348ef3ff69751e9289ae53c /src/parseTools.js | |
parent | 46ac4d27413df891bc0d8c60f94ef0f29955d766 (diff) |
preprocessor requires variable>0 to consider it true
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
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 |