props.nas: allow "getBoolValue" to work with properties of UNSPECIFIED type.
This commit is contained in:
parent
ca3ff66e36
commit
ed5692f411
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ var Node = {
|
|||
|
||||
getBoolValue : func {
|
||||
var val = me.getValue();
|
||||
if(me.getType() == "STRING" and val == "false") return 0;
|
||||
var mytype = me.getType();
|
||||
if((mytype == "STRING" or mytype == "UNSPECIFIED") and val == "false") return 0;
|
||||
return !!val;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue