View Single Post
Old 01-22-2023, 01:42 PM   #486
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,209
Karma: 77935877
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
That works! I was able to combine two if-thens that returned the same value:

Code:
	if 
		select($identifiers, 'url') 
		&& !'Anthology' in $#fanficstatus
	then
		if 
			$publisher == 'Archive of Our Own'
			&& !select($identifiers, 'ao3')
		then 'metadata.png' 

		elif 
			$publisher == 'FanFiction.net'
			&& !select($identifiers, 'ffnet')
		then 'metadata.png' 
		fi
	fi,

into this:

Code:
	if 
		select($identifiers, 'url') 
		&& !'Anthology' in $#fanficstatus
	then
		if 					
			($publisher == 'Archive of Our Own' 
			&& !select($identifiers, 'ao3'))
			|| 
			($publisher == 'FanFiction.net' 
			&& !select($identifiers, 'ffnet'))
		then 'metadata.png' 
		fi
	fi,
ownedbycats is offline   Reply With Quote