title: Pymongo Or Condition To Filter Queries
body: <p>so I am having a little bit of trouble going through mongoDB with pymongo and using the or condition. Looked at all similar posts, but for some reason, mine doesn't seem to work.</p>
  
  <pre><code>        goodShots = coll.find({"Tag" : "zombiegame", "Meta.levelState":"NORMAL_MODE", "$or":[
              {"Meta.zombiesInLOS":{'$gt':0}}, {"Meta.zombiesInSLOS":{'$gt':0}},
               {"Meta.helpersInLOS":{'$gt':0}}, {"Meta.helpersInSLOS":{'gt':0}}
              ]})
  
          goodShot01 = coll.find({"Tag" : "zombiegame", "Meta.levelState" : "NORMAL_MODE", "Meta.zombiesInLOS" : {"$gt" : 0}})
          goodShot02 = coll.find({"Tag" : "zombiegame", "Meta.levelState" : "NORMAL_MODE", "Meta.zombiesInSLOS" : {"$gt" : 0}})
          goodShot03 = coll.find({"Tag" : "zombiegame", "Meta.levelState" : "NORMAL_MODE", "Meta.helpersInLOS" : {"$gt" : 0}})
          goodShot04 = coll.find({"Tag" : "zombiegame", "Meta.levelState" : "NORMAL_MODE", "Meta.helpersInSLOS" : {"$gt" : 0}})
  </code></pre>
  
  <p>The first query 'goodShots' should technically return queries that have all the other conditions in 'goodShot01-04.' However, it returns 0. 'goodShot01-04' returns a count > 0 though.</p>