View Single Post
Old 01-28-2024, 11:43 PM   #7
correoparaappzz
Connoisseur
correoparaappzz began at the beginning.
 
Posts: 66
Karma: 10
Join Date: Nov 2023
Device: Kindle Oasis
Quote:
Originally Posted by ownedbycats View Post
I use a custom stored template, readstatus(), which checks several other columns and then produces a read status based on it.

Code:
program:

	if 'dnf' inlist $#admintags
	then 'didnotfinish'

	elif ($$#percentread >=#1 && $$#percentread <=#99) || ($#readinglist == 'Reference')
	then 'currentlyreading' 

	elif $#readinglist=='To Be Read' && $$#percentread ==#0
	then 'toberead' 

	elif $$#percentread >=#100
	then 'read' 

	elif $$#percentread == 'None'
	then 'undefined' 

	elif $$#percentread >=#0
	then 'unread' 

	fi
I use it in various other templates, including a composite column that displays a more readable version (e.g. 'Currently Reading' instead of currentlyreading).

Most users could probably get away with just a composite column.
where do i put it?
correoparaappzz is offline   Reply With Quote