On Monday 26 November 2012 19:52:33 Boudewijn Rempt wrote: > if (type == "numfile") > return Value(KoDocument::documentList() ? > KoDocument::documentList()->count() : 0); This is a number and not a bool Thorsten