View Single Post
Old 03-24-2021, 02:07 AM   #3
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,307
Karma: 79528341
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
On this topic:

Code:
program:
	if raw_field('#percentread') ==# '0' then '1'
	else raw_field('#percentread')
	fi
Running this on a book with #percentread undefined returns result as 1.What is the proper way to make it remain undefined?

I changed it to raw_field('#percentread', '1') and it remained undefined but that felt kludge. Empty string '' returned a 1 not sure why.

Last edited by ownedbycats; 03-24-2021 at 02:31 AM.
ownedbycats is offline   Reply With Quote