View Single Post
Old 03-27-2021, 06:43 PM   #1
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
Template: Indenting

I made a template. It works but I think I indented it wrong. Where should I put the indents?

Code:
program:
 if 
		and(check_yes_no('#read', '', '1', ''),
		raw_field('#percentread') ==# 100,
		field('rating'),) 
		then 	'Yes' 
		else field('#read')
	fi
Context: In FanFicFare, I have it set #read to 'no' when updating a fanfic. But this also runs when I am using 'update metadata' on previously-read fanfics, for instance to update series numbers. This just sets it back to 'yes' if it's 100% read and has a rating. I put it my Cleanup: Fanfiction action chain.


Last edited by ownedbycats; 03-27-2021 at 06:46 PM.
ownedbycats is offline   Reply With Quote