View Single Post
Old 02-16-2025, 03:49 PM   #808
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,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question:

Code:
program:

	if 
		readgoal() in $#admintags
	then '' 
	else 	
		$#rggenres
	fi
readgoal():

Code:
program: strcat('readinggoal:', format_date(today(), 'yyyy'))
I made this to clear a specific column if there's a readinggoal:2025.

However, if there's another readinggoal: tag (example: readinggoal:2020) alongside the 2025 tag, I want to not clear it.

How do I do this?


If it helps they range from 2020-2024.
Using list_intersection might be a way forward. That would tell you whether more than one readinggoal:... tag is in the list. This works because the tags have known values, no regexp is required.
chaley is offline   Reply With Quote