View Single Post
Old 06-12-2021, 11:10 AM   #6
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,082
Karma: 76037135
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm working on making a new column, #kobostatus. I just borrowed the template from my column icon. (I am planning to change the icons to pull from #kobostatus once I got it working.)

Code:
program:

k = $#kobocoll;

if check_yes_no('#onkobo', 0, 1, 0) then 'Send to Device'
elif check_yes_no('#onkobo', 0, 0, 1) then
	if list_contains(k, ',', '^Kobo Store$', '1', '') then 'Kobo Store'
	elif list_contains(k, ',', '^Send to Device$', '1', '') then 'Send to Device'
	else 'Sideloaded'
	fi
fi
Unfortunately, while it works in the tester, in the column itself it just outputs TEMPLATE ERROR Formatter: Unknown function list_contains near 'list_contains' on line 7.
ownedbycats is offline   Reply With Quote