View Single Post
Old 04-26-2022, 05:01 PM   #380
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,511
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I have a template to update $#kobostatus (enumerated column):

Code:
program:

	category = first_non_empty(
		if $#fanficcat then '[Fanfiction]'
		elif 'Loans' inlist $#vls then '[Loans]'
		elif '\[Kobo Store\]' in $#kobostatus then '[Kobo Store]'
		else '[Sideloaded]' fi
		);
Is there a better alternative for line 6's "retain '[Kobo Store] if it exists"?
What kind of column is 'kobostatus'? What do you mean by "better"?
chaley is offline   Reply With Quote