View Single Post
Old 10-13-2021, 06:03 AM   #180
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,500
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Is this actually the correct way to check for no formats? It works, at least.
Yes, it is a correct way as long as your database correctly lists the formats. If Check Library phase 2 passes then you are fine.

FWIW: this does the same thing but is less efficient because of the explicit compare:
Code:
if approximate_formats() == '' then 'foo' fi
chaley is offline   Reply With Quote