View Single Post
Old 02-16-2025, 01:08 PM   #807
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.
You want to remove the value from a column if there is a specific tag but not another tag similarly formed? I think you can do this with list_count_matching('readinggoal:202'). If it returns 1 then there is only one such tag. You would then need to be sure that the one tag is the one you want.

I'm not clear about what you are trying to do, so I can't get more precise.
chaley is offline   Reply With Quote