diff --git a/Nasal/props.nas b/Nasal/props.nas index 31ce8108b..7578f4f11 100644 --- a/Nasal/props.nas +++ b/Nasal/props.nas @@ -452,11 +452,10 @@ var _cond_cmp = func(p, op) { return nil; } } - if(left == nil or right == nil) { - logprint(LOG_ALERT, "condition: comparing with nil"); - dump(p); - return nil; - } + + if (left == nil) left = 0.0; + if (right == nil) right = 0.0; + if(op < 0) return left < right; if(op > 0) return left > right; return left == right;