adriank / ObjectPath

The agile query language for semi-structured data
http://objectpath.org
MIT License
380 stars 93 forks source link

Rethink the way ObjectPath **and** operator works #80

Open adriank opened 5 years ago

adriank commented 5 years ago

>>> 3 and 4 => 4 >>> {"name": 1} and {"name": 2} => {"name": 2}

Operator and should work according to what's in the reference manual:

Negative are: false, null, 0, "", [], {}. Any other value is positive.