1
0
Fork 0

work around Nasal bug (and/or operators)

This commit is contained in:
mfranz 2007-02-07 17:31:41 +00:00
parent caf96d76c8
commit b07ebf0dfa

View file

@ -41,8 +41,9 @@ Node = {
getBoolValue : func { getBoolValue : func {
val = me.getValue(); val = me.getValue();
if(me.getType() == "STRING" and val == "false") { 0 } if(me.getType() == "STRING" and val == "false") { 0 }
else { val != nil and val != 0 } elsif (val == nil) { 0 }
} else { val != 0 }
},
}; };
## ##