View Single Post
Old 05-10-2021, 07:18 PM   #100
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Try this:

Code:
program:
	status = $#fanficstatus;
	tags = $tags;
	
	if 
		status == 'Anthology'
	then
		tags = list_difference(tags, 'In-Progress,Complete', ',')		
	else
		tags
	fi
The problem in your code was this line:

Code:
strcat('In-Progress', 'Complete')
which returns a new string that is not present in your tags

Code:
In-ProgressComplete
Edit: strcat() is only needed if you are concatenating variables. If all you are using is plain text you can still use strcat(), but you do not need to.

Last edited by capink; 05-10-2021 at 07:20 PM.
capink is offline   Reply With Quote