View Single Post
Old 12-11-2021, 11:58 PM   #215
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,050
Karma: 75568269
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
New question:

Code:
program:
	if
			$#lastread
		&& 
			$$#percentread >=# 1
		&&
			$$#percentread <=# 99

	then
		'Currently Reading'
	fi
Is there a "number is between 1-99" I can use instead?

EDIT: Additionally:

Code:
program:

	if
		$#currentlyreading
		then
			if 
				$#fanficcat && '/' in $#chapters 
			then
				f = re($#chapters, '(.*)/.*', '\1');
				s = re($#chapters, '.*/(.*)', '\1');

			if 
				(s - f) ==# 1 
			then
				'add_book.png' 
			fi	
	
		else		
			'bookmark-48.png'
		fi	

	elif
		$#readinglist
	then
		'list.png'

	elif
		$$#percentread == 'None'
	then
		'whiteminus.png'

	elif
		$$#percentread ==# 100
	then
		'ok.png'

	elif
		$$#percentread ==# 0
	then
		'list_remove.png'

	fi
For some reason, if I have a book with a #chaptercount of e.g. 50/100, it returns blank where I expected bookmark_48.

99/100 returns add_book as expected, and any books without a slash return their expected results.

Any idea what went wrong?

Last edited by ownedbycats; 12-12-2021 at 04:40 AM.
ownedbycats is offline   Reply With Quote