View Single Post
Old 05-05-2021, 09:00 AM   #20
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I wasn't thinking straight last night. The right way to do this is with list_equals, not list_sort(). This way neither the order nor the spacing matters.
Code:
program:
	f = $#fanficcat;
	if list_equals(
		f, ',',
		'Crossover, Mass Effect Trilogy, Mass Effect: Andromeda', ',',
		'1', '')
	then
		f = 'Mass Effect Trilogy, Mass Effect: Andromeda'
	fi;
	f
chaley is offline   Reply With Quote