1
0
Fork 0

boolify <property> result

This commit is contained in:
mfranz 2007-03-18 15:49:11 +00:00
parent 0b4e6f934e
commit b2f57eab81

View file

@ -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;