On 26.10.2008 18:59, Tj Superfly wrote:
> Sorry, I just figured it out.
> 
> if exists(url, pet)
> 
> ^ that seems to be working
> 
> then in my def i put
> 
> def exists(item, species)
> 
> :)
> 
> If anyone has something better feel free to let me know.

If you do the same test against the same collection it is cleaner to 
just have one parameter and invoke the method twice.  But you do not 
tell us what logical connection there should be between the two.  It 
seems you ripped out too much of the original code, for example 
"species" is missing and we do not know where it comes from.

Cheers

	robert