View Single Post
Old 01-04-2023, 07:47 PM   #451
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks.

When using first_non_empty, is there any performance difference between checking a default and custom column? Trying to figure out the optimal order for this (e.g. the more complex ones with multiple checks at the end).

Code:
program:
## Missing metadata
first_non_empty(
	if !$formats then 'plus.png' fi,
	if !$tags then 'tags.png' fi,
	if !$languages then 'languages.png' fi,
	if !$#booktype then 'catalog.png' fi,
	if !$#pagecount then 'cover_flow.png' fi,
	if !$#chaptercount && !'paperbook' in approximate_formats() then 'cover_flow.png' fi,
	if $#booktype == 'Documentation & Manuals' && !$#manualtype then 'catalog.png' fi,
	if $#kobostatus && $#kobostatus != 'Kobo Store' && !$#kobopath then 'snippets.png' fi,
)
ownedbycats is online now   Reply With Quote