How come the syntax? I do not know that. I would use: if db(db.mytable.id>0).count(): ....
On Jun2, 2:17am, ceriox <cer...@gmail.com> wrote: > i need to test if a table are empty in if statement ... i try with: > > if db.Prestiti.id.count==0: > vuoto='if ' > else: > vuoto='else ' > > it go under else in both cases (table Prestiti with no record or with > record)