Hi deostroll, The recommended way is to call .fetch(count) on the query object, and check if the returned list has any elements, or if you only want one result, call .get() and check if it returns None.
If you want to use the query as an iterator (not recommended unless it's the only option, since it is less efficient), you can use a construct like the following: for greeting in greetings: # Do some stuff with greeting else: # Do stuff if there were no greetings -Nick Johnson --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
