10 Replies Latest reply on Aug 19, 2010 1:02 AM by Jonathon LeFaive

    catalog:findPhotos is returning entire catalog. Should be 0.

    Jonathon LeFaive Level 3

      The catalog has 15087 photos in it.  This code meets the condition:

       

       

      local targPhotos = catalog:findPhotos {
                      searchDesc = {
                          criteria = "sdktext:(_PLUGIN).('tagboolean')",
                          operation = "==",
                          value = nil,
                      }
                  }
                  if #targPhotos <= 15087
      then

      ...

       

      This one does not:

       

      local targPhotos = catalog:findPhotos {
                      searchDesc = {
                          criteria = "sdktext:(_PLUGIN).('tagboolean')",
                          operation = "==",
                          value = nil,
                      }
                  }
                  if #targPhotos < 15087

      ...

       

      The issue is that every photo in the catalog has a value with this field.

       

      Am I missing something here?