boolify <property> result
This commit is contained in:
parent
0b4e6f934e
commit
b2f57eab81
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ var _cond = func(p) {
|
|||
if(n == "greater-than") { return _cond_cmp(p, "GT"); }
|
||||
if(n == "less-than-equals") { return !_cond_cmp(p, "GT"); }
|
||||
if(n == "greater-than-equals") { return !_cond_cmp(p, "LT"); }
|
||||
if(n == "property") { return getprop(p.getValue()); }
|
||||
if(n == "property") { return !!getprop(p.getValue()); }
|
||||
printlog("alert", "condition: invalid operator ", n);
|
||||
dump(p);
|
||||
return nil;
|
||||
|
|
Loading…
Reference in a new issue