View Single Post
Old 07-19-2024, 05:00 AM   #697
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,506
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
[QUOTE=ownedbycats;4439478]Question:

Code:
program:

cleaned_tags = 'whatever';

## Add anthology/omnibus/short story if applicable

	if 'short-stories' && 'omnibus' in $#admintags 
	then cleaned_tags  = 'Anthology' & if cleaned_tags then ', ' & cleaned_tags fi...
I think this line is your problem. The && makes the if always true because 'short-stories' is true. I think you want
Code:
	if 'short-stories' in $#admintags && 'omnibus' in $#admintags
chaley is offline   Reply With Quote