View Single Post
Old 05-04-2021, 05:40 PM   #6
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,044
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Related to this: I am trying to remove "Crossover" from fanfics that technically aren't crossovers:

Code:
program:
	f = $#fanficcat;
	if 
		contains(
			f, '^Crossover, Mass Effect Trilogy, Mass Effect: Andromeda$', '1', ''
		)
	then 
		'Mass Effect Trilogy, Mass Effect: Andromeda' 
	elif
		contains(
			f, '^Crossover, Half-Life, Portal$', '1', ''
		)	
		then 'Half-Life, Portal' 
	else
		$#fanficcat;
	fi
However, this fails if the tags aren't in that exact order. Since it appears sorted in book details it's hard to tell. Is there a better way to do this?

Last edited by ownedbycats; 05-04-2021 at 05:51 PM.
ownedbycats is offline   Reply With Quote