work around Nasal bug (and/or operators)
This commit is contained in:
parent
caf96d76c8
commit
b07ebf0dfa
1 changed files with 3 additions and 2 deletions
|
@ -41,8 +41,9 @@ Node = {
|
|||
getBoolValue : func {
|
||||
val = me.getValue();
|
||||
if(me.getType() == "STRING" and val == "false") { 0 }
|
||||
else { val != nil and val != 0 }
|
||||
}
|
||||
elsif (val == nil) { 0 }
|
||||
else { val != 0 }
|
||||
},
|
||||
};
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Reference in a new issue