View Single Post
Old 02-08-2023, 12:26 PM   #506
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,152
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks

New question.

Code:
program:

	if
		list_count($#fanficcat, ',') == 3
		&& 'Crossover' in $#fanficcat 
		&&	
		('Mass Effect Trilogy' in $#fanficcat && 'Mass Effect: Andromeda' in $#fanficcat)
		|| 
		('Half-Life' in $#fanficcat && 'Portal' in $#fanficcat)
		then
			'yes'
		fi
Three checks:

1. There are three items in the taglike #fanficcat.
2. One of them is 'Crossover.'
3. The other two are either "Mass Effect Trilogy, Mass Effect Andromeda" or "Half-Life, Portal."

Examples, to make it more clear:
Spoiler:

"Half-Life, Portal" - ✘ no match
"Crossover, Half-Life, Mass Effect Trilogy" - ✘ no match
"Crossover, Half-Life, Portal, zzz" - ✘ no match
"Crossover, Half-Life, Portal" - ✔ 'yes'


However, I messed up the operators as I'm getting 'yes' on a book where #fanficcat is "Half-Life, Portal" (two items and it does not include crossover). Where did I make the mistake?

Last edited by ownedbycats; 02-08-2023 at 12:37 PM.
ownedbycats is offline   Reply With Quote