View Single Post
Old 01-29-2022, 04:58 AM   #317
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
Quote:
Originally Posted by chaley View Post
I think you mean something like this:
Code:
program:
	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' )
	      ||
		(!select(ids, 'ffnet')
		 && $publisher == 'FanFiction.net'
		 && status == 'In-Progress')
	then
		"metadata.png" 
	fi
Thanks Since both of them use in-progress I was able to reduce it a tiny bit more:
Code:
elif						
	(status == 'In-Progress' &&
	(!select(ids, 'ao3')  && $publisher == 'Archive of Our Own') 						
	||
	(!select(ids, 'ffnet') && $publisher == 'FanFiction.net')	
	)
then "metadata.png"
ownedbycats is offline   Reply With Quote