View Single Post
Old 01-29-2022, 01:18 AM   #314
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,170
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
if select(ids, 'url') then
	if 
		'(Archive of Our Own|Fanfiction.net)' in $publisher 
		&& '(Completed|Abandoned|Oneshot|Incomplete)' in status
	then "metadata.png"

	elif
		!select(ids, 'ao3')
		&& $publisher == 'Archive of Our Own' 
		&& status == 'In-Progress'
		then 'metadata.png' 
	
	elif 
		!select(ids, 'ffnet')
		&& $publisher == 'FanFiction.net'
		&& status == 'In-Progress'
		then "metadata.png" 
	fi 
fi
Would it be able to combine the two bottom elifs into one? Regex (ao3|ffnet) is one way, but is there a way to keep the id/publisher pair separate from each other?

EDIT: Another question:

Click image for larger version

Name:	2022-01-29 04_45_56-Template tester.png
Views:	1270
Size:	26.4 KB
ID:	191967

Did I somehow accidentally turn it into last_non_empty?

Last edited by ownedbycats; 01-29-2022 at 04:19 AM.
ownedbycats is offline   Reply With Quote